Could not find a version that satisfies the requirement flask

使用命令安装flask,出现报错

百度找到解决方法https://www.cnblogs.com/lijinze-tsinghua/p/8666558.html

参考修改成pip install flask -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com就安装成功了。

原文:

pip安装python包出错:Could not find a version that satisfies the requirement skimage (from versions: )

 

今天用pip安装skimage时报错:

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

命令改为:

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-23 10:12  薇薇前进  阅读(13298)  评论(0编辑  收藏  举报