
艰辛opencv-python下载之路

记录下载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
找到适合的,再多换几个镜像就应该可以下好
我在下载的时候,碰到过这样的问题,但是也一直没明白是为什么,如果有懂的小伙伴麻烦评论区教教我。反正我是稀里糊涂的装好了这个库,希望对大家有用!




更多推荐
所有评论(0)