打开了 jupyter notebook 终端后,终端页面如下
bash-3.2$
输入:
bash-3.2$ conda activate python3.7
出现以下错误:
bash-3.2$ conda activate python3.7
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- 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'.
解决办法:
需要首先激活 conda ,才能进入 conda 环境
第一步,输入
source activate
注意📢? 直接输入 conda 也是激活不了的
第二步
conda activate python3.7
其中Python3.7 是我自创建的一个 conda env。
以上
|