pip not working in python 3.5 on Windows 7

前端 未结 10 769
礼貌的吻别
礼貌的吻别 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:22

    Working on windows and above version than 3.0

    First upgrade pip to pip3 by following command:

    pip3 install --upgrade setuptools pip
    

    Then install maximum package by following command:

    pip3 install <package_name>
    

    I never wrote all package because some package not support to pip or pip3 command.

    0 讨论(0)
  • 2020-12-24 16:26

    run it at the cmd window, not inside the python window. it took me forever to realize my mistake.

    0 讨论(0)
  • 2020-12-24 16:28

    For those with several python versions of python 3 installed in windows: I solved this issue by executing the pip install command directly from my python35 Scripts folder in cmd...for some reason pip3 pointed to python 34 even though python 35 was set first in environmental variables.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题