Python安装问题——Could not find a version that satisfies the requirement xxxx(from versions: )

问题:pip install xxx出现Could not find a version that satisfies the requirement xxxxxxx(from versions: )
No matching distribution found for xxxxx问题

解决方案:pip install xxx -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
(其中xxx可换为你想安装的模块,–trusted-host pypi.douban.com 的作用是获得ssl证书的认证,http://pypi.douban.com/simple/为国内镜像)

猜你喜欢

转载自blog.csdn.net/zeshen123/article/details/108563437