'pip' is not recognized as an internal or external command

when i downloaded python and ran it on the windows cmds it did not work because of the (‘pip’ is not recognized as an internal or external command, operable program or batch file.) but when i run ‘python --version’ it would show me the latest version of python just fine.

i looked up the problem on youtube and followed the steps of adding python to PATH, and when i went to the ‘Scripts’ folder it just says empty. why?

i also saw someone posted the same issue as me. could this problem only occur for users with windows 11 or something?

i deleted and reinstalled python twice completely. and i kept checking if ‘pip’ is ticked and still the same. nothing.

for the past 3 days I’ve been trying to fix it and nothing worked. i would appreciate it if someone could help me and others solve this issue.

Check out the second thread below this one: Why does my python not come with pip installed - #5 by zyraa007

Not sure how you added it to the PATH, but see the “Repair” option in the installer where you can add it to the Path.

You can also run: python -m pip ... or py -m pip to run pip. Do either of those work?

yeah i tried running those commands and neither of them worked.

also i meant that i added python to the Environment Variables PATH. and when i went to add the ‘Scripts’ folder as well, it just says that ‘This folder is empty’.

What error message did you get?

What exactly did you add to your PATH?

the error message i got was ‘No module named pip’

and i added ‘C:\Users\xxx\AppData\Local\Programs\Python\ Python312’ to PATH.

Where did you download python from?
How did you install it?

Try using py.exe command to run python and pip like this.
We recommend using py.exe on windows.

py -m pip

Here are python’s windows specific docs 4. Using Python on Windows — Python 3.12.4 documentation

i installed python from their website (python.org)
and went through the process of the installation and kept all the options default (they were all ticked). i will try the command and see.

also i have a question, do i have to be an administrator for it to work? could this be the reason?

No you can both install python as a normal user.

Have you tried using the py.exe command to run pip as I suggested?

yeah i tried running that command and it showed me the latest version of python

Try this command:

py -m pip

Does that run pip for you?

it says “No module named pip”

That’s indeed odd. Try py -m ensurepip --upgrade.

How’d you install Python? Did you uninstall at all?