user10593699
user10593699

Reputation:

How can i install PIP on my windows machine in Visual Studio Code

I have tried many different things such as wget https://bootstrap.pypa.io/get-pip.py && sudo /usr/bin/python get-pip.py and also adding it to the PATH but none have worked. When I try to run anything with pip I get this error...

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

can anyone help with this or point me to somewhere that may help as well?enter image description here

Upvotes: 0

Views: 26211

Answers (1)

Divyessh
Divyessh

Reputation: 2721

download get-pip.py by following this link: https://bootstrap.pypa.io/get-pip.py. Alternatively, use curl:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

Then run the following command in the folder where you have downloaded get-pip.py:

python get-pip.py

Upvotes: 2

Related Questions