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

中国智能体开发者社区,聚焦智能体与大模型开发,提供前沿资讯、实用工具链、开源项目及行业案例。通过技术沙龙、开发者大赛等活动,促进经验交流与协作,助力开发者快速构建创新智能应用。

更多推荐