Not able to install Python packages [SSL: TLSV1_ALERT_PROTOCOL_VERSION]

前端 未结 17 2019
一整个雨季
一整个雨季 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 14:03

    To upgrade the local version I used a slight variant:

    curl https://bootstrap.pypa.io/get-pip.py | python - --user
    

    This problem arises if you keep your pip and packages under your home directory as described in this gist.

提交回复
热议问题