Fixing ‘pip’ is not recognized

pip is not recognized as a command in your Command Prompt or PowerShell environment. This issue might occur due to the pip executable not being in your system’s PATH, which is required to run pip from any directory. Make sure you have first installed python already then follow the article.

How to fix the issue:

  1. Add Python to the PATH: When you installed Python, there might have been an option to add Python to the system PATH. If you didn’t select this option during the installation, you can do it manually.
    • Open the “Environment Variables” settings on your Windows machine. You can do this by searching for “Environment Variables” in the Start menu search and clicking on “Edit the system environment variables.”
    • In the System Properties window, click on the “Environment Variables” button.
    • Click on the “New” button and add the path to the “Scripts” folder in your Python installation directory. It should look something like: C:\Users\codingissimple\AppData\Local\Programs\Python\Python311\Scripts\ , also add C:\Users\codingissimple\AppData\Local\Programs\Python\Python311\ . Here 311 means 3.11 python version, if you have installed different python version adjust the url accordingly. Make sure the files are present in this path by manually browsing through folders in your windows folders. If Python is installed at different location adjust the path accordingly. You can know the installation path of python by using ” python interactive shell”. This is installed when you install python. You can search for python in start menu search and clicking on Python 3.11(64-bit) once python shell opens use following command to know the path of installation.
      import sys
  1. Restart Command Prompt or PowerShell: After adding Python to the PATH, close and reopen your Command Prompt or PowerShell window to ensure the changes take effect.
  2. Verify pip installation: To check if pip is now recognized, run the following command:
    pip --version

If it displays the version information, you have successfully fixed the PATH issue for pip.

Don't Miss Out! Subscribe to Read Our Latest Blogs.

If you found this blog helpful, share it on social media.

Subscription form (#5)

Leave a Comment

Pin It on Pinterest

Scroll to Top