300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > pip安装包报错Could not find a version that satisfies the requirement pymysql (from versions: none)

pip安装包报错Could not find a version that satisfies the requirement pymysql (from versions: none)

时间:2020-11-16 13:28:49

相关推荐

pip安装包报错Could not find a version that satisfies the requirement pymysql (from versions: none)

使用python自带的pip安装包时,可能会报以下错误:

ERROR: Could not find a version that satisfies the requirement pymysql (from versions: none) ERROR: No matching distribution found for pymysql

1. 可能需要升级一下pip版本

python -m pip install --upgrade pip

执行完后发现还是报一样的错误

2. 考虑换一个pip源

pip install pymysql -i https://pypi.tuna./simple/

执行完后发现还是报一样的错误

3. 考虑是网速的原因,采用国内的镜像源来加速

pip install pymysql -i /simple/ --trusted-host # --trusted-host 获得ssl证书的认证

执行成功

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。