使用pip安装pymysql时出现如下错误:
Could not find a version that satisfies the requirement cryptography (from pymysql) (from versions: )
No matching distribution found for cryptography (from pymysql)
主要原因是网络的问题,需要使用国内的镜像源来加速,比如豆瓣源
因此命令可以使用:
pip install pymysql -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
本文解决了使用pip安装pymysql时遇到的cryptography版本不匹配问题,提供了一个通过使用豆瓣源加速下载的方法。
474

被折叠的 条评论
为什么被折叠?



