例如在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) - skippingCould 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。即可