ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

简介: ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

问题描述

在pycharm中运行程序时,出现ModuleNotFoundError: No module named 'cv2'报错,原因是没有安装相应的库,在终端输入以下命令即可完成库的安装:

pip install opencv_python


但是在安装过程中会报错:ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly


解决方案

直接使用conda安装:

conda install py-opencv


参考:http://t.csdnimg.cn/WM4Ea

目录
相关文章
|
7天前
|
Python
【Python3报错】Fatal error in launcher: Unable to create process using ……
【Python3报错】Fatal error in launcher: Unable to create process using ……
|
1月前
|
Python
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
|
1月前
|
Python
gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
77 1
|
1月前
|
安全 网络安全 API
python调用openai api报错self._sslobj.do_handshake()OSError: [Errno 0] Error
python调用openai api报错self._sslobj.do_handshake()OSError: [Errno 0] Error
123 1
python调用openai api报错self._sslobj.do_handshake()OSError: [Errno 0] Error
|
1月前
|
计算机视觉 Python
python opencv:ERROR: Could not find a version that satisfies the requirement opencv ERROR:
python opencv:ERROR: Could not find a version that satisfies the requirement opencv ERROR:
88 2
|
1月前
|
关系型数据库 Python
Python小姿势 - Python Tips: How to Use Context Managers
Python小姿势 - Python Tips: How to Use Context Managers
|
1月前
|
Python
NPM【问题 01】npm i node-sass@4.14.1报错not found: python2及Cannot download问题处理
NPM【问题 01】npm i node-sass@4.14.1报错not found: python2及Cannot download问题处理
196 0
|
1月前
|
编解码 Python Windows
Python文件路径报错SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: t
Python文件路径报错SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: t
|
7月前
|
Python
python pymssql charset=“gbk“ b‘DB-Lib error message 20010, severity 8
python pymssql charset=“gbk“ b‘DB-Lib error message 20010, severity 8
80 0
|
7月前
|
网络安全 Python
python request SSL error 403证书错误
python request SSL error 403证书错误
85 0