pip not working in python 3.5 on Windows 7

前端 未结 10 839
礼貌的吻别
礼貌的吻别 2020-12-24 15:47

I have installed python 3.5 on my Windows 7 machine. When I installed it, I marked the check box to install pip. After the installation, I wanted to check wheth

10条回答
  •  梦谈多话
    2020-12-24 16:30

    I was having the same problem on Windows 10, This is how I fix it:

    1. Click the search icon and type System Environment
    2. In System Properties click on Environment Variables
    3. In System Variables tab click New
    4. Enter PYTHON3_SCRIPTS for the variable name and C:\Users\YOUR USER NAME\AppData\Local\Programs\Python\Python38-32\Scripts for Variable Value. Don't forget to change (YOUR USER NAME) in the path with your user, And to change your Python version or just go to this path to check it C:\Users\YOUR USER NAME\AppData\Local\Programs\Python
    5. Click OK
    6. Click NEW again!
    7. Enter PYTHON3_HOME for the variable name and C:\Users\YOUR USER NAME\AppData\Local\Programs\Python\Python38-32\ for Variable Value. Don't forget to change (YOUR USER NAME) in the path with your user, And to change your Python version or just go to this path to check it C:\Users\YOUR USER NAME\AppData\Local\Programs\Python
    8. Click OK
    9. Find Path in the same tab select it and click Edit
    10. Click New and type %PYTHON3_SCRIPTS% Then click OK

    Now, everything is set. Restart your Terminal and pip should be working now.

提交回复
热议问题