Python: Resolving the error : The term ‘pip’ is not recognized as the name of a cmdlet, function, script file, or operable program

Hi all,

Today in this article we are going to solve the most asked question ever : The term ‘pip’ is not recognized as the name of a cmdlet, function, script file, or operable program.

To know more about pip you can surely check this article- https://knowledge-junction.com/2021/07/25/most-popular-tool-for-installing-python-packages-pip/

Issue / Error

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
+ python
+ ~~~
    + CategoryInfo          : ObjectNotFound: (python:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

How to fix the issue / Error

If you want to fix the error follow these steps:

1) First we will search Environment Variables

Fig : 1 Python : Searching Environment Variables
Fig : 1 Python : Searching Environment Variables

2) Then it will open System Properties

Fig : 2 Python : System Properties
Fig : 2 Python : System Properties

3) After that we will click on environment variables…

Fig : 3 Python : Clicking on Environment variables
Fig : 3 Python : Clicking on Environment variables

4) After clicking one more dialogue box will open

Fig : 4 Python : Dialogue box - Environment Variables
Fig : 4 Python : Dialogue box – Environment Variables

5) Now we will click on path

Fig : 5 Python : Path
Fig : 5 Python : Path

6) After clicking on the path the dialogue box will open.

Fig : 6 Python : Edit environment variables
Fig : 6 Python : Edit environment variables

7) Now we have to add the path where our scripts is located. So to add the path we will click on new.

Fig : 7 Python : New button
Fig : 7 Python : New button

8) Here we can add the location

Fig : 8 Python : Here we can add the location
Fig : 8 Python : Here we can add the location

9) To add the location we will open our Python folder and copy the path of scripts

Fig : 9 Python : Location of the scripts
Fig : 9 Python : Location of the scripts

10) Now we will copy the path and paste it in the Edit Environment variables

Fig : 10 Python : Adding the path
Fig : 10 Python : Adding the path

11) After adding the path we will click on ok and the close all the dialogue boxes

Now we have finally solved the error. We will test in the terminal by typing pip

Fig : 11 Python : pip is working
Fig : 11 Python : pip is working

As we can see that the pip is working now we can use pip for installing packages

Thank you for reading this article 🙂

Have a nice day!!

You may also like...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: