【问题标题】:How to use conda in atom terminal without typing in source ~/.bashrc?如何在 atom 终端中使用 conda 而不输入 source ~/.bashrc?
【发布时间】:2020-11-12 12:04:56
【问题描述】:

最近我为 atom 编辑器安装了 platformio 终端。当我打开终端运行 conda 时,它说找不到命令。尽管 conda 在普通终端中运行良好。我在 .bashrc 上运行了源命令,它起作用了。但是每次我重新启动 atom 时我都必须处理这个问题。我该如何摆脱它?

【问题讨论】:

    标签: bash ubuntu atom-editor


    【解决方案1】:

    您需要覆盖默认的 shell 实例。转到 Atom 中 platformio 终端的设置并更改 shell 路径。在我的例子中,默认的 shell 是 Powershell,它不会启动 conda。所以,我在这里更改了指向 cmd.exe "C:\Windows\System32\cmd.exe" 的路径并重新启动了终端,这为我解决了问题。也许,对于 Linux,您也需要在此处输入 ~/.bashrc 路径并重新启动终端

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-17
      • 2017-08-18
      • 1970-01-01
      • 2019-10-09
      • 2019-10-12
      • 1970-01-01
      相关资源
      最近更新 更多