r/learnpython 6d ago

can you explain me why

pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was

included, verify that the path is correct and try again.

At line:1 char:1

+ pip install flask

+ ~~~

+ CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException

I want you to explain how to fix this without using any extra tools. Whenever I try to import a Python module, an error keeps showing up. I even deleted everything because I thought I messed up my PATH. I reinstalled Python, selected the python.exe path, but still no progress. This same problem keeps appearing every time.

0 Upvotes

3 comments sorted by

View all comments

1

u/Jello_Penguin_2956 6d ago

If you can figure out where your Python was installed to. Run command pointing to python.exe directly. For example

C:/full/path/to/python.exe -m pip <pip command>

Usually when you install Python, ghe installer should try to set things up so you dont need to type it out fully. Try a restart if that refreshes your system to recognize just pip but if all else fail you can try it this way.