永久修改办法;
修改 ~/.pip/pip.conf
内容:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
wget: command not found
执行:
apt-get install -y wget
通过使用命令 来执行安装:
pip3 install opencv-python==3.4.11.45
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python==3.4.11.45
此时会报错:
按照 报错的信息查询。