首页 > 解决方案 > Why isn't my virtualenv opening up in visual studio code?

问题描述

I'm working with Django right now and when I installed it through the command prompt I made a virtualenv called test, now I went into vs code and I am trying to open it up by saying workon test but it's not going into the virutalenv. I am on windows and I am using visual studio code.

标签: pythonvirtualenv

解决方案


要通过命令提示符打开虚拟环境,

跑,activate.bat

\test\Scripts\activate.bat

对于 bash 运行,

source test/bin/activate

推荐阅读