conda激活環(huán)境報錯
解決IMPORTANT: You may need to close and restart your shell after running ‘conda init’.
激活conda環(huán)境
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'.
在命令行運行文章來源:http://www.zghlxwxcb.cn/news/detail-527363.html
conda init cmd.exe
conda init powershell
運行完成后,重啟CMD命令行,激活Python環(huán)境即可解決。文章來源地址http://www.zghlxwxcb.cn/news/detail-527363.html
到了這里,關(guān)于解決conda激活環(huán)境 IMPORTANT: You may need to close and restart your shell after running ‘conda init‘.的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!