VSC-conda在GitBash中运行良好,而在集成的VSC-bash中则不然



由于工作目的,我不得不从PyCharm切换到VSC。PyCharm的一切都很有魅力(我知道我在派对上很有趣(。

Conda在GitBash上配置良好。我午餐时看到了程序和(base)环境。我可以使用conda命令。

我刚刚安装了VSC,conda被重新配置,因为我可以在下栏的帮助下切换env。但我习惯于使用终端,集成终端(我切换到bash(似乎与我可以作为独立设备使用的bash不同。(base)env不会弹出,如果我尝试conda init bash,命令将失败:

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If using 'conda activate' from a batch script, change your
invocation to 'CALL conda.bat activate'.

我真的不确定出了什么问题。我不习惯Windows,我有点迷失了所有可用的终端。

如果您运行的是Windows,您可能需要使用CRTL+P然后搜索Terminal: Select Default Shell,将VSC中使用的shell从PowerShell更改为CMD或Bash。

最新更新