简体   繁体   English

您如何在VSCode中查看活动的Conda环境?

[英]How do you view the active Conda environment in VSCode?

I have 3 Conda environments set up (in addition to the base environment). 我已经设置了3个Conda环境(除了基本环境)。 anaconda导航器环境列表

In VSCode you can easily select a Conda environment as your Python interpreter. 在VSCode中,您可以轻松地选择Conda环境作为Python解释器。
vscode python解释器列表

Great! 大!
But the name shown isn't specific to the environment, just the interpreter. 但是显示的名称并非特定于环境,而只是解释程序。

状态栏名称

How do you get this to show something like Anaconda Python 3.7.0 [environment-2] ? 如何显示类似Anaconda Python 3.7.0 [environment-2]

This is probably due to the fact that when you installed Anaconda you left it off of your PATH . 这可能是由于以下事实:在安装Anaconda时,您将其保留在PATH This is a known issue . 这是一个已知问题

I'm not sure the exact date it happened but this feature is now launched. 我不确定发生的确切日期,但现在已启动此功能。 🎉💥 🎉💥

在vscode python中的conda

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM