用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

猜你喜欢

转载自www.cnblogs.com/wjw-blog/p/10092192.html