Python Forum
Where does pip auto install on Win10 with py 3.9.4?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where does pip auto install on Win10 with py 3.9.4?
#1
Question 1 - I read several places that pip automatically installs with later versions of python... right?

Question 2 - I just installed python 3.9.4 on a Win10 64-bit computer.
Entering "py" at the command line launched Python 3.9.4 and it worked.
BUT I had to add python to the environment variables to get it to launch using the word "python" ...
Is that as it should be?

Question 3 - Python seems to installed itself at...
C:\Users\user-01\AppData\Local\Programs\Python\Python39
and not in C:\Programs Files
and not in C:\Program Files (x86)
and not in C:\
Is this as it should be?

Question 4 - Entering "pip" at the command line doesn't launch pip
I thought pip auto installed on Win10 when installing the latest python... in this case that was version 3.9.4...
But... in an attempt to add pip to the environment variables...
I was unable to find a folder named "pip" on the machine...
Where, if anywhere, was pip automatically installed on the Win10 64-bit machine when I installed Python 3.9.4...
Or will I still have to manually install it?
And if so from where? And what version?

Thanks for any help.
Reply
#2
Look at Python 3.9/3.8 and pip installation under Windows
Most of your question should be answered there.

pip automatically install,you may need to fix Environment Variables Path as shown link over.
I like to have simple Path to Python(Shown how to in link),so this is what it look for me.
C:\>python -V
Python 3.9.1

C:\>pip -V
pip 21.1 from c:\python39\lib\site-packages\pip (python 3.9)

# Show root path
C:\>python -c "import sys; print(sys.executable)"
C:\python39\python.exe

C:\>
Reply
#3
I Still can not find pip on the Win10 64-bit PC.

I have Python 3.8.4 installed at...
C:\Users\User-01\AppData\Local\Programs\Python
and it works.

BUT going to that folder and entering
pip -V
gives me...

'pip' is not recognized as an internal or external command,
''pip'' is not recognized as an internal or external command,
operable program or batch file.

I know it needs to be in the Environment Variables Path etc
BUT if I can't find the location of pip I can't setup the Envirnment Variables Path etc

Snippsat sugested doing this...
# Show root path
C:\>python -c "import sys; print(sys.executable)"
C:\python39\python.exe
BUT I'd like to know what these commands do before I run them.

Thanks for any help !!!
Reply
#4
OK. Here is how I solved the mystery and...
found out how to use pip in Windows 10 after Installing Python 3.8.4...

Note: "pip comes automatically when you install python 3.8.4 so you do not need to download and install pip separately."

Answer:
Don't enter "pip" at the command line to launch pip...
> pip

Instead use python to engage pip and install a python package...
like this example to install the CamelCase package
> python -m pip install camelcase

After which the package will be installed...
BUT you may get a Warning that you are using an older version of pip...
To fix this run this command...
> python.exe -m pip install --upgrade pip

Of course you must have your Windows 10 enviroment variable and path set properly or python wont run...
Here is a link showing you how to do that...
How to add Python Path to Environment Variables in Windows 10

That's it.

Maybe there is another way but this seemed to work for me.
Reply
#5
(May-05-2021, 03:13 PM)Fran_3 Wrote: Snippsat sugested doing this...
# Show root path
C:\>python -c "import sys; print(sys.executable)"
C:\python39\python.exe
BUT I'd like to know what these commands do before I run them.
It's just a way to run this,but do it from command line.
Here as a normal Python scripts.
import sys

print(sys.executable)
Output:
C:\Python39\python.exe
So it give root path to python.
pip.exe will be in Script folder.
C:\Python39\Scripts\pip.exe
So then for me this to paths shall be in environment variables Path.
C:\Python39\
C:\Python39\Scripts\
For what you post,your environment variables Path should be.
C:\Users\User-01\AppData\Local\Programs\Python\
C:\Users\User-01\AppData\Local\Programs\Python\Scripts\
Restart Pc and test again pip -V.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Compiling on win10 ebolisa 1 1,725 Sep-04-2020, 04:39 PM
Last Post: ebolisa
  Error building wheel for grpcio on win10 Topiii 1 5,155 Nov-13-2019, 03:08 PM
Last Post: snippsat
  Development Server Problem (Win10) SMY1 0 1,929 Apr-26-2019, 06:25 PM
Last Post: SMY1
  win10 Service(script) start and stop hwa_rang098tkd 0 2,427 Jun-21-2018, 07:42 PM
Last Post: hwa_rang098tkd
  Win10 Import math issue Oldsquid 2 3,045 May-12-2018, 11:08 AM
Last Post: Oldsquid
  Load spatialite in Python 3.6 on Win10 failed RTFirefly 1 5,358 Feb-19-2018, 09:59 PM
Last Post: RTFirefly
  Can't get .py to run on Win10 command line jonesin1974 3 4,625 Nov-08-2017, 04:25 AM
Last Post: jonesin1974

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020