GluePear
GluePear

Reputation: 7715

VSCode is not picking up my python virtual environment

I have a fresh virtual environment and VSCode project. My problem is that when I go to "Python: Select Interpreter", following the docs, the virtual environment is not one of the options.

My project folder structure looks like this:

parent
   |- bin
   |- include
   |- lib

The available interpreters in the dropdown are

/usr/bin/python2.7
/usr/local/opt/python/bin/python3.7
/usr/local/bin/python3

Upvotes: 1

Views: 752

Answers (1)

mspiller
mspiller

Reputation: 3840

The virtualenv folder has to be inside of the project folder, not the project folder itself.

Upvotes: 1

Related Questions