Use anaconda's Jupyter Notebook installed with pyenv with zsh (problem fix), and summarize the trial and error for using Jupyter Notebook with Zsh as a memorandum. Keep it.
--Even though you can check the virtual environment with $ conda info -e
, you cannot activate it with$ conda activate <virtual environment name>
.
Mac OS Mojave
Terminal
$ conda activate <Virtual environment name>
The error message returned
Terminal
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'.
Terminal
$ conda init <SHELL_NAME>* This time, "zsh"
Terminal
$ exec $SHELL -l
When I restarted the shell, the prompt was (base) <username>%
. It seems that it has entered the base environment of Python, so exit the virtual environment with $ conda deactivate
.
-Python memo-50 (I can't activate on fish shell after conda 4.4.6) (conda, activate, fish)
Recommended Posts