用PIP 安装或升级python遇到错误提示

Posted wjwdive

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用PIP 安装或升级python遇到错误提示相关的知识,希望对你有一定的参考价值。

用PIP 安装或升级python遇到错误提示

$ pip install pythons

Collecting pythons

  Could not find a version that satisfies the requirement pythons (from versions: )

No matching distribution found for pythons

 

这是因为网络的问题,需要使用国内的镜像源来加速,比如豆瓣源

命令改为:

pip install scikit-image -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

或者

pip3 install scikit-image -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

以上是关于用PIP 安装或升级python遇到错误提示的主要内容,如果未能解决你的问题,请参考以下文章