ERROR: Could not find a version that satisfies the requirement pymysql (from versions: none)

发布时间 2023-04-04 11:59:21作者: 秋秋2021

踩过的坑

不管是idea中直接引入还是 pip3 install pymysql 都会报错:ERROR: Could not find a version that satisfies the requirement pymysql (from versions: none)

 

 

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

pip install pymysql -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

 

解决问题参考:https://blog.csdn.net/T_Y_F_/article/details/126225407,感谢博主分享