记录下载TensorFlow和opencv-python

先说一下tensorflow

pip3 install tensorflow -i http://mirrors.aliyun.com/pypi/simple/

pip3 install tensorflow -i http://mirrors.aliyun.com/pypi/simple/

我用的这两个命令下载,如果报这样的错
在这里插入图片描述那很有可能是我挂着梯子,先关一下梯子下载试试。
如果还下不下来,就多换几个镜像试试

豆瓣:http://pypi.douban.com/simple/
阿里云:http://mirrors.aliyun.com/pypi/simple/
华为云:https://repo.huaweicloud.com/repository/pypi/simple
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple
中科大:https://pypi.mirrors.ustc.edu.cn/simple/

下载opencv-python

pip3 install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
报这样的错,
报这样的错,就是少这个库
pip install scikit-build -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
导入这样的库

pip install opencv-python==4.5.5 --user -i https://pypi.tuna.tsinghua.edu.cn/simple
下载指定版本的库
他会提示你,你应该下什么样的版本
在这里插入图片描述
这就说明不适合这样的版本

pip install opencv-python==4.4.0.40 --user -i https://pypi.tuna.tsinghua.edu.cn/simple
找到适合的,再多换几个镜像就应该可以下好

在这里插入图片描述
我在下载的时候,碰到过这样的问题,但是也一直没明白是为什么,如果有懂的小伙伴麻烦评论区教教我。反正我是稀里糊涂的装好了这个库,希望对大家有用!

GitHub 加速计划 / opencv31 / opencv
170
15
下载
OpenCV: 开源计算机视觉库
最近提交(Master分支:5 个月前 )
36a5176a Migrate remaning OpenVX integrations to OpenVX HAL (features2d) 2 天前
1de6e204 - 2 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐