Cannot install PIP on Windows 10

后端 未结 2 1208
遥遥无期
遥遥无期 2021-01-15 00:13

I ran the Python 3.5.1 installer from https://www.python.org/downloads/release/python-351/. However, on the command line, when I go to run pip, I see an error:

相关标签:
2条回答
  • 2021-01-15 00:27

    You must to add pip's path into Environment Variables. Pip is contained in python's script directory.

    Example my case: C:\Python34\Scripts\pip.exe

    To add path to environment variables.

    1. Hold Win and press Pause.
    2. Click Advanced System Settings.
    3. Click Environment Variables.
    4. Add C:\Python34\Scripts (Sorry I don't know name of python 3.5's directory) to the Path on System variables.
    5. Restart Command Prompt.

    Edit

    In another way, you can use pip-Win instead of pip. Read more here: https://sites.google.com/site/pydatalog/python/pip-for-windows

    0 讨论(0)
  • 2021-01-15 00:33

    The solution is to get the latest pip installer script from: https://bootstrap.pypa.io/get-pip.py, and install it with python get-pip.py.

    Then you can use commands like python -m pip ... to your heart's content.

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