【问题描述】
用 pip install easydict 命令安装easydict包时候,报了如下的错:
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
grin 1.2.1 requires argparse>=1.1, which is not installed.
以为是没有安装PyHamcreast包的原因,然后就打算先安装这个。
结果报错:
Could not find a version that satisfies the requirement PyHamcreast (from versions: )
No matching distribution found for PyHamcreast
【解决方案】
可以通过如下命令解决:
pip --trusted-host pypi.python.org install 安装包名字
如果还是报同样的错误无效,那就使用另一个镜像网站:
http://pypi.doubanio.com/simple/
大家可以打开看一下该网站,几乎包含所有的常见包。大家可以按照字母顺序找一下里面是否包含自己即将要安装的包,一般来说是有的。
对应的命令行就是:
pip install 安装包名字 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
问题解决。
参考链接汇总
[1] Could not find a version that satisfies the requirement tensorflow问题汇总+解决!!!
[2] Could not find a version that satisfies the requirement pymysql3 (from versions: ) No matching dist