Not able to install Python packages [SSL: TLSV1_ALERT_PROTOCOL_VERSION]

前端 未结 17 2003
一整个雨季
一整个雨季 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:46

    I also hit this problem on my windows10 and tried all the answers but didn't solve my problem.

    C:\python367\Scripts>pip install Flask

    Collecting Flask Could not find a version that satisfies the requirement Flask (from versions: ) No matching distribution found for Flask

    After that, I find the pip configuration file had been modified. So, I set the pip.ini as the original default configuration, re-run the pip command and it works for me!

    In summary of the solution of mine:

    1. Check the pip.ini (usually under the path C:\ProgramData\pip) had been modified;

    2. If yes in step1, try to reset it to a default configuration.

提交回复
热议问题