通过pycharm下载第三方模块,SSL错误解决办法

例如在pycharm下载six这个模块,提示如下

Collecting six

  Could not fetch URL https://pypi.python.org/simple/six/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping

  Could not find a version that satisfies the requirement six (from versions: )

No matching distribution found for six

直接在终端pip install six,提示的错误是一样的。


解决办法,根据错误信息直接去官网https://pypi.python.org/simple/six/下载,下载的包里会有setup.py然后在pycharm的终端执行python setup.py install。即可

猜你喜欢

转载自blog.csdn.net/huakai_sun/article/details/79972106