当前位置:网站首页>AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline'
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline'
2022-08-09 04:19:00 【"25'h"】
安装deepforest
后,opencv-python
导入import cv2
显示以下错误
D:\code_management\pythonProject
is my project path
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "D:\code_management\pythonProject\main.py", line 17, in <module>
import cv2
File "D:\code_management\pythonProject\venv\lib\site-packages\cv2\__init__.py", line 181, in <module>
bootstrap()
File "D:\code_management\pythonProject\venv\lib\site-packages\cv2\__init__.py", line 175, in bootstrap
if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "D:\code_management\pythonProject\venv\lib\site-packages\cv2\__init__.py", line 28, in __load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "D:\code_management\pythonProject\venv\lib\site-packages\cv2\gapi\__init__.py", line 290, in <module>
cv.gapi.wip.GStreamerPipeline = cv.gapi_wip_gst_GStreamerPipeline
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)
先卸载opencv,Then install the latest version.
pip uninstall opencv-python
pip uninstall opencv-contrib-python
pip install opencv-contrib-python
pip install opencv-python
关于pyThe package terminal download is slow,这个链接:https://pypi.tuna.tsinghua.edu.cn/simple/opencv-python
安装时:
pip install 包名
For all packages download via the following methods·:https://pypi.tuna.tsinghua.edu.cn/simple/
+python包名
边栏推荐
猜你喜欢
5. Index optimization practice
Improve the user experience and add a small detail to your modal popup
「竞品分析报告」不会写?不知从哪收集数据?请收下这篇竞品指南
From brute force recursion to dynamic programming leetcode Question 62: Different paths
两种K线形态预示今日伦敦银走向
Alibaba Cloud Tianchi Contest Question (Machine Learning) - Repeat Purchase Prediction of Tmall Users (Complete Code)
钉钉与RStudio快捷方式冲突--钉钉快捷键设置
笔记本电脑重装系统后开机蓝屏要怎么办
了解CV和RoboMaster视觉组(五)local-distribution汇聚方法
『HarmonyOS』Page与AbilitySlice的生命周期
随机推荐
STM32串口通信不停接受到垃圾数据的问题及其解决
NanoDet代码逐行精读与修改(五.1)检测头的构造和前向传播
别跟客户扯细节
做现货白银前这些要诀应先记起来
【服务器数据恢复】Ext4文件系统fsck后mount不上并报错的数据修复案例
服务端修改Cookie——跨域cookie发送机——通信加密——异或加密
33 Basic Statistics - One Item Nonparametric Test
两种K线形态预示今日伦敦银走向
337. Robbery III
360 评估反馈问题的示范案例
NanoDet代码逐行精读与修改(零)Architecture
【二叉树】重建二叉树
"IP" command to configure network interface
MySQL:意向共享锁和意向排它锁 | 死锁 | 锁的优化
【每日一题】761. 特殊的二进制序列
NanoDet代码逐行精读与修改(二)FPN/PAN
了解CV和RoboMaster视觉组(五)目标跟踪:概述与光流法
XJTUSE Professional Course and Experiment Guide
Improve the user experience and add a small detail to your modal popup
3年半测试经验,20K我都没有,看来是时候跳槽了...