无法在Visual Studio代码上激活虚拟环境

发布于 2025-02-01 20:05:25 字数 305 浏览 3 评论 0原文

我正在使用Virtualenv创建虚拟环境。我能够在命令提示符上激活虚拟环境,但是当我尝试在Visual Studio代码上进行相同的操作时,它说“找不到Conda环境:测试 您可以使用conda信息列出所有可发现的环境-envs。”。

它试图通过全局python解释器来找到我的anaconda环境。

当我使用“ Activate Env_name”时,我如何让它搜索和激活Anaconda之外的虚拟环境

。 ://i.sstatic.net/xwiwv.png“ alt =”选定的python解释器和错误”> 。

I am using virtualenv to create a virtual environment. I am able to activate the virtual environment on the command prompt but when i try to do the same on visual studio code , it says "Could not find conda environment: Test
You can list all discoverable environments with conda info --envs.".

It is trying to find a anaconda environment inspite of me using a global python interpreter.

When I use "activate env_name", how do i make it to search and activate a virtual environment outside anaconda. I am using windows 10.

The Selected python interpreter and the error.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文