用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

posted @ 2018-12-09 17:31  wjwdive  阅读(1854)  评论(0编辑  收藏  举报