ERROR: Could not find a version that satisfies the requirement flake8

ERROR: Could not find a version that satisfies the requirement flake8 ,第1张

安装python的过程中出现错误:
ERROR: Could not find a version that satisfies the requirement flake8 (from versions: none)
ERROR: No matching distribution found for flake8

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

解决方案:

pip install flake8 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
pip install yapf -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com

原因:
干脆不使用https://pypi.python.org网站了,我们用一个镜像网站,那边是:

http://pypi.doubanio.com/simple/

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/578322.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-11
下一篇 2022-04-11

发表评论

登录后才能评论

评论列表(0条)

保存