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

On Ubuntu16.04, I worked with Python3 in vscode and

apt-get install python3-pip

solves my problem.

That's because I discover that: Under my terminal, I type the pip -V. It displays it's for Python2, not for Python3.


Man you can only change the interpreter.

Go in (ctrl + shift + p), then type Python: Select Interpreter, this way you choose the version that your extension needs.

This worked for me.


I have multiple python versions:

2.7
3.6
3.7
  1. Tell the vscode/ visual studio code, which version to use:

press the following (Show All Commands): Ctrl + Shift + P
paste the following: Python: Select Interpreter
Select one of the version that it shows, I have selected python 3.7.3 64-bit

  1. Update python path in settings:

press Ctrl + , to open Settings
search for python.pythonPath
change python to /usr/bin/python3.7

Note: this may not be needed, however, make sure /usr/bin/python3.7 really exists for you, you may have at a different path like /usr/local/bin/python3.7, etc.

  1. I had pip but it was 2.7, but since I am choosing python 3, it's pip needs to be installed

Run the following command in Terminal: apt-get install python3-pip

  1. Restart vscode

With the above steps, all issues got resolved. Hope that helps.