python - 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.
解决方案
要通过命令提示符打开虚拟环境,
跑,activate.bat
\test\Scripts\activate.bat
对于 bash 运行,
source test/bin/activate
推荐阅读
- ios - 两个右导航栏按钮显示偏移问题
- python - 创建列表 np.arange
- php - 我的编辑器无法识别 laravel 项目中扩展名为 .vue "ChatApp.vue" 的组件
- c++ - 如果在类中定义了方法,则防止编译器删除方法
- python - 另一个表的字段返回计数
- lua - 我如何使用 nodemcu 发送 ping(监视器规范 ip)?
- streaming - 如何通过 RTMP 为 h264 发送 PTS
- javascript - 匹配彼此相邻的 2 个字符正则表达式
- machine-learning - 使用LSTM层时应该如何设置输出层?
- python - python中的基本英语到猪拉丁语翻译