Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use pip with Visual Studio Code

I have python 3.6 installed, I have a python extension installed on Visual Studio code but I still can't use pip on Visual Studio code. It says it is not a recognised command. Any help please?

Update: I tried installing pip manually but a file in python2.7 keeps stopping. What's bothersome is that I uninstalled python 2.7 ages ago and I've currently removed every folder with it but python-V still says I have python2.7.6 installed.

I'm on windows 10

like image 756
Drew U Avatar asked Feb 26 '17 01:02

Drew U


People also ask

Can you use pip in Visual Studio?

Yep! Go to Tools -> Python Tools -> Python Environments .

Why pip is not working in VS code?

Nearly every issue I've had with this error was because of multiple versions of python (and pip) or because vscode could not figure out the PATH because there were conflicts there. Make sure your PATH is correct.


1 Answers

I found some solution on this website:

https://pip.pypa.io/en/stable/installing/

If you use Visual Studio Code, you can type the following command:

   C:\> py -m pip

If everything is alright, you should see the list of commands, which you can use. They are listed in your terminal, as per below.

enter image description here

I also would advise you to check/select the version of Python you are using:

VSCode: There is no Pip installer available in the selected environment

like image 74
MKR Avatar answered Sep 21 '22 18:09

MKR