1.按照正常步骤进行opencv库安装时,win+r输入cmd,然后输入conda activate env(你的虚拟环境),进入虚拟环境之后,输入代码

pip install opencv-python

 准备安装opencv,但是出现报错:

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
ERROR: No matching distribution found for opencv-python
WARNING: There was an error checking the latest version of pip.

暂时解决的办法:使用豆瓣源换源安装,暂时解决问题

pip install opencv-python   -i https://pypi.doubanio.com/simple   

猜测可能是代理vpn出现了问题,但是检查了一下并未打开代理。目前不知道具体原因。 

 

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐