Not able to install Python packages [SSL: TLSV1_ALERT_PROTOCOL_VERSION]

前端 未结 17 2037
一整个雨季
一整个雨季 2020-11-21 13:16

I am trying to install a Python library using pip, getting an SSL error:

~/projects/base  pre-master±  pip install xdict

Collecting xdict
  Co         


        
17条回答
  •  遥遥无期
    2020-11-21 13:55

    Following @Anupam's answer on OS X resulted in the following error for me, regardless of permissions I ran it with:

    Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ...

    What eventually worked was to download a newer pip package (9.0.3) from PyPI directly from my browser - https://pypi.org/simple/pip/, extract the contents, and then pip install the package locally:

    pip install ./pip-9.0.3/
    

    This fixed my [SSL: TLSV1_ALERT_PROTOCOL_VERSION] errors.

提交回复
热议问题