出现在使用pip换源安装时,例如
pip install flask -i https://pypi.tuna.tsinghua.edu.cn/simple
解决方法:
在命令后面加上 --trusted-host [参数]
例如:
pip install flask -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
出现在使用pip换源安装时,例如
pip install flask -i https://pypi.tuna.tsinghua.edu.cn/simple
解决方法:
在命令后面加上 --trusted-host [参数]
例如:
pip install flask -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn