Python throws the error, ‘pip’ is not recognized as an internal or external command, operable program or batch file, when either the pip is not installed or its path is not set in environment variable.

To install pip

By default pip is packaged with Python, but if somehow it is not there, you can either run the Python installer again and check pip box –

python installer select pip

Or download it from pypa and install. According to pip documentation

First download from this link –

then run this below command –


To add path in environment variable

First of all, check where your python is installed. Some common locations are –

C:\Program Files\Python36\


Now add the path using this command –

setx PATH "%PATH%;C:\Program Files\Python36\Scripts"

Note: After running this command, you need to close the command prompt and open again.

To install a package

py -m pip install [packagename]

These steps will resolve the issue of pip not recognized as internal or external command.

    Tweet this to help others


About the Author


I am Akash Mittal, an overall computer scientist. If you want to guest post, need help in your projects, want to advertise, Feel free to contact me at [email protected]

View All Articles