conda激活环境报错
解决IMPORTANT: You may need to close and restart your shell after running ‘conda init’.
激活conda环境
conda activate py37
报错信息
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'.
在命令行运行文章来源:https://www.toymoban.com/news/detail-527363.html
conda init cmd.exe
conda init powershell
运行完成后,重启CMD命令行,激活Python环境即可解决。文章来源地址https://www.toymoban.com/news/detail-527363.html
到了这里,关于解决conda激活环境 IMPORTANT: You may need to close and restart your shell after running ‘conda init‘.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!