How to install pip3 on Windows?

2019-01-09 08:59发布

问题:

I use python 2.7, 3.5.2 and 3.6. Normally pip3 is installed with python3.x. But ...

The code:

where pip3

gives me:

INFO: Could not find files for the given pattern(s).

How can I fix this?

回答1:

On Windows pip3 should be in the Scripts path of your Python installation:

C:\path\to\python\Scripts\pip3

Use:

where python

to find out your where the Python executable(s) is/are located. The result should look like this:

C:\path\to\python\python.exe

or:

C:\path\to\python\python3.exe

You can if check pip3 works with this absolute path:

C:\path\to\python\Scripts\pip3

if yes, add C:\path\to\python\Scripts to your environmental variable PATH .



回答2:

For python3.5.3, pip3 is also installed when you install python. When you install it you may not select the add to path. Then you can find where the pip3 located and add it to path manually.