pip安装python包:
WARNING: The repository located at ### is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host ###'. ERROR: Could not find a version that satisfies the requirement # (from versions: none) ERROR: No matching distribution found for #
pip国内的一些镜像:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
该问题的具体解决方案:
在pip命令后 加上 --trusted-host mirrors.aliyun.com
pip更新
python -m pip install --upgrade pip