当前位置:网站首页>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包名
边栏推荐
- LeetCode题解—15.三数之和
- 2022年熔化焊接与热切割考试模拟100题及在线模拟考试
- TASSEL软件导入plink格式文件报错
- 了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法:维纳滤波器Wiener Filter,LMS
- 2022年起重机司机(限桥式起重机)考试题库及模拟考试
- HyperLynx(四)差分传输线模型
- 新一代CMDB构建方法,是能够给企业带来收益的
- NanoDet代码逐行精读与修改(五.1)检测头的构造和前向传播
- [Server data recovery] A case of data recovery when the Ext4 file system cannot be mounted and an error is reported after fsck
- 数据库指标是怎么个意思
猜你喜欢
随机推荐
【每日一题】761. 特殊的二进制序列
Detailed explanation of Oracle's windowing function
松柏集(云衣裳)
整数倍数数列
Poly1CrossEntropyLoss的pytorch实现
Ali YunTianChi competition problem (machine learning) - ali cloud security malware detection (complete code)
机器人工程师入门知识框架(思维导图)
2022年安全员-B证考试练习题及在线模拟考试
别跟客户扯细节
Gopacket source code analysis
【精品向】你真的会写测试用例么?全网超大型测试用例攻略
MySQL:redo log日志——笔记自用
了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法
Session、cookie、token有什么区别?
【OpenCV】-查找并绘制轮廓
"IP" command to configure network interface
【Redis底层解析】跳跃表
松柏集(江风起)
MySql.Data.MySqlClient.DBNull
单元测试覆盖率怎么算?