@pip下载出错
WARNING: You are using pip version 20.2.1; however, version 23.3.1 is available.You should consider upgrading via the ‘d:\python.exe -m pip install --upgrade pip’ command.报错
这个报错的大致意思是pip版本太老了,不支持下载安装,要更新pip
可以直接在终端跟新
python -m pip install --upgrade pip -i https://pypi.douban.com/simp
le
pip下载
下载cv2
pip install opencv-python
如果下载太慢了可以加个国内的下载网址
比如下载cv2为例;
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simp
le
清华: https://pypi.tuna.tsinghua.edu.cn/simple
阿里云: http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学: http://pypi.hustunique.com/
山东理工大学: http://pypi.sdutlinux.org/
豆瓣: http://pypi.douban.com/simple/