Following this link: Customizing User Environment — Zero to JupyterHub with Kubernetes documentation, I want to create users’ own conda environment, but I cannot activate.
I pull Quay and build with nb_conda_kernels.
jovyan@jupyter-xiao1:~$ conda list
..................
nbconvert-core 7.16.4 pyhd8ed1ab_1 conda-forge
.....................
I also create /home/jovyan/.condarc:
jovyan@jupyter-xiao1:~$ more .condarc
envs_dirs:
- /home/jovyan/my-conda-envs/
Then I create a new conda environment with: conda create -n myenv ipykernel scipy
I can see the myenv by:
jovyan@jupyter-xiao1:~$ conda info --envs
# conda environments:
#
myenv /home/jovyan/my-conda-envs/myenv
base * /opt/conda
When I activate myenv, I am always required to init. After I run: conda init, and try to activate myenv, I am still be asked to init.
jovyan@jupyter-xiao1:~$ conda activate myenv
CondaError: Run 'conda init' before 'conda activate'
Any help? Thanks.