close

How to install packages with pip in Windows PowerShell

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to install packages with pip in Windows PowerShell in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to install packages with pip in Windows PowerShell?

  1. How to install packages with pip in Windows PowerShell?

    I had the same problem. You need to set the PATH environment variable, so that the system recognizes the command “pip”.

  2. install packages with pip in Windows PowerShell

    I had the same problem. You need to set the PATH environment variable, so that the system recognizes the command “pip”.

Method 1

I had the same problem. You need to set the PATH environment variable, so that the system recognizes the command “pip”.

If typing easy_install or pip [in PowerShell] doesn’t work, it means the Scripts folder is not in your path. Run the next command in that case (Note that this command must be run only once or your PATH will get longer and longer). Make sure to replace c:\Python33\Scripts with the correct location of your Python installation:

setx PATH "%PATH%;C:\Python33\Scripts"

Close and reopen PowerShell after running this command.

Method 2

Starting from Python versions 2.7.9 and 3.4.0, ‘pip’ is already included in the regular install. Check if the path to the ‘Scripts’ directory inside your Python installation directory is contained in your system’s ‘PATH’ environment variable, so ‘pip’ can be found.

Sounds like you are trying to run pip inside python, You shouldn’t get an ‘invalid syntax’ error through the command prompt. More like “‘pip’ is not recognized”. Try simply just opening command prompt and typing ‘pip help’

Conclusion

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read