How to setup virtual environment for Python in VS Code?

后端 未结 12 1901
灰色年华
灰色年华 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:30

    I had the same problem and it was because PowerShell was not updated. Sometimes Windows preserve version 2.* and I had to manually download and install version 3. After that problem solved and I could use virtual environments very well.

提交回复
热议问题