使用pip安装软件包时出现问题。
运行pip3 install pandas
时得到:
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:646) - skipping
。
但是,当我运行sudo -H python3 -m pip install pandas
时,熊猫安装就没问题了。
我进行了大量的谷歌搜索,但我一直无法理解使用pip3 install packageName
的问题
供参考:运行which python3
时输出为/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
,运行which pip3
时输出为/Library/Frameworks/Python.framework/Versions/3.5/bin/pip3
感谢您的帮助。