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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。