我使用Cmder作为我的命令行,我刚刚安装了Anaconda,我想在Cmder会话中与Conda一起工作,而不是打开anaconda提示符。它不理解conda
命令,当然,当我导航到安装Anaconda的路径并尝试运行_conda.exe acrivate base
时,我会看到:
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'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- cmd.exe
- fish
- tcsh
- xonsh
- zsh
- powershell
See 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
字符串
我该怎么办?
1条答案
按热度按时间4dbbbstv1#
你只需要运行
conda init cmd.exe
就可以了。之后,重新启动cmder,您应该能够在默认的cmder shell中访问
conda
。更多详情:https://copyprogramming.com/howto/anaconda-python-cmder-integration-on-windows-10-2