无法安装PySocks MacOS 10.13 python 2.7.13

时间:2018-05-06 10:39:34

标签: python python-2.7 pip

无法在我的Mac上安装PySocks。 Python版本2.7.13。 我正在使用pip install PySocks并收到此消息:

Collecting pysocks
Could not fetch URL https://pypi.python.org/simple/pysocks/: 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 pysocks (from versions: )
No matching distribution found for pysocks

提前感谢您的帮助!

2 个答案:

答案 0 :(得分:0)

There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version

尝试取消对网站https://pypi.python.org/simple/pysocks/

的SSL证书检查

或者在网站上没有找到404或者403被禁止

答案 1 :(得分:0)

问题出现在旧版本的pip中。试图通过pip install --upgrade pip升级点数,但ID不起作用。所以找到了答案here