在 Windows 10 上,我如何通过 super 终端而不是 Anaconda Prompt 在 Python(通过 Anaconda 安装)中获取/工作?
最佳答案
您可以在 Hyper 设置中更改 shell (Ctrl+,
),即在您的 .hyper.js
中。
// the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
// if left empty, your system's login shell will be used by default
shell: '',
如果您分析 Anaconda Prompt 快捷方式的目标,它可能看起来类似于:
%windir%\System32\cmd.exe "/K" C:\Users\Administrator\miniconda3\Scripts\activate.bat
因此您可以在 Hyper 中使用 Anaconda Prompt:
shell: 'C:\\WINDOWS\\System32\\cmd.exe',
shellArgs: ['/K C:\\Users\\Administrator\\miniconda3\\Scripts\\activate.bat'],
适合我。重新启动 Hyper 后,我可以在提示中看到我的虚拟环境 (base)
,我可以使用 python
和 conda
。我假设它与 Anaconda Powershell Prompt 的工作方式类似,但我还没有尝试过。
关于python - 从 super 终端采购 Anaconda Python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60331055/