J
J
Jolt2019-09-18 12:14:41
Python
Jolt, 2019-09-18 12:14:41

How to properly set up venv in VSCode?

When creating a virtualenv in the project tree, vscode suggests using its python interpreter, but all python-related extensions immediately begin to swear. For example, the fact that pep8 is not installed, but it absolutely did not fall to me in this virtual environment.
If you leave the global interpreter, then again vscode swears at the absence of any libraries (which are in the virtual machine, but not in the global one) and refuses to show hints for them, etc.
The question is: how to correctly specify pythonPath so that when debugging (or when running this file in the terminal) venv is used, and the vscode extensions access the global interpreter?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question