本文介绍了如何在 Windows 中激活我的虚拟环境?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 VSC 并尝试通过其终端激活我的虚拟环境.

I'm using VSC and trying to activate my virtual environment through its terminal.

我已经导航到终端中的项目文件夹并运行:

I've navigated to the project folder in terminal and ran:

virtualenv ll_env 似乎成功创建了虚拟环境.

virtualenv ll_env which seems to successfully create the virtual environment.

现在我尝试运行 ll_env/bin/activatell_env\Scripts\activate.bat 来激活它,但似乎没有做任何事情.据说当我激活它时,我应该在终端中看到 (ll_env)learning_log .请帮忙.我也附上了截图.

Now I tried to run ll_env/bin/activate and ll_env\Scripts\activate.bat to activate it but doesn't seem to do anything. Supposedly when I have activated it I'm supposed to see (ll_env)learning_log in terminal. Please help. I've attached a screenshot as well.

推荐答案

使用以下内容:

.\ll_env\Scripts\activate

这篇关于如何在 Windows 中激活我的虚拟环境?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 12:34