VSCode 启动时停止 conda [英] Stop conda when VSCode starts

查看:62
本文介绍了VSCode 启动时停止 conda的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一下是否有人可以帮助我在启动 VSCode 时停用 conda env,每次我打开 VSCode 时它都会启动 conda env,我已经搜索了如何停止它,但我没有找到解决方案,所以每次我都必须停用手动,有人遇到同样的问题吗?

I wanted to ask if someone can help me to Deactivate conda env when I start VSCode, everytime I open VSCode it starts conda env, i've search how to stop it but i didnt found a solution so everytime i have to deactivate it manually, has anyone face the same problem?

推荐答案

在VSCode终端上执行以下命令

Execute the following command on on VSCode terminal

conda config --set auto_activate_base False

下次打开 VSCode 终端时不会激活 conda base 环境.

It won't have conda base environment activated next time you open VSCode terminal.

注意:只有在安装时完成 conda init 才能工作.

Note: It will only work if you have done conda init at the time of installation.

希望这个答案对您有所帮助.

Hope, this answer will help you.

这篇关于VSCode 启动时停止 conda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆