How to setup virtual environment for Python in VS Code?

后端 未结 12 1926
灰色年华
灰色年华 2020-11-29 16:29

In my project folder I created venv folder.

python -m venv venv

When I in VS Code run command select python interpreter my ven

12条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 16:50

    There is a VSCode extension called "Python Auto Venv" that automatically detects and uses your virtual environment if there is one.

提交回复
热议问题