例如在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) - skippingNo matching distribution found for six
直接在终端pip install six,提示的错误是一样的。
解决办法,根据错误信息直接去官网https://pypi.python.org/simple/six/下载,下载的包里会有setup.py然后在pycharm的终端执行python setup.py install。即可