How to select Python 3 in Visual code

1

I have already installed the Python extension in VSCode but want to know how do I recognize the Python 3 synthase?

    
asked by anonymous 23.06.2017 / 02:06

1 answer

1

Open Settings and add the following key:

"pythonPath": "/usr/bin/python3",

But the correct way would be for you to go to the folder of your project, create a virtualenv like this:

virtualenv --python=/usr/bin/python3 venv

enable virtual env

source venv/bin/activate

and then give the command

code .

so the visual studio code will open all files in that folder using virtualenv's python as an interpreter.

    
25.06.2017 / 15:29