pip install package 失败并提示ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION]的解决方法

>>使用pip install 的时候频繁出现以下提示语:

Mac-mini:~ $ pip install pyspider#packagename

Collecting pyspider

  Could not fetch URL https://pypi.python.org/simple/pyspider/: 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 pyspider (from versions: )

No matching distribution found for pyspider


解决方法:

终端执行:1. curl https://bootstrap.pypa.io/get-pip.py >> get-pip.py

                   2.python get-pip.py

你可能感兴趣的:(pip install package 失败并提示ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION]的解决方法)