jupyter 找不到我的 conda env
jupyter cannot find my conda env
我的 mac 这个目录里有一个 conda env
/anaconda/envs/dl
然后我通过 activate source dl
开始我的 conda env
当我启动 jupyter 时,它不显示 conda env dl,只显示它使用 python3 而不是 conda env。
Notebook python3
如果我点击终端,它会显示这个。
安装 nb_conda ,它应该可以工作。
您需要安装 nb_conda,但是目前 nb-conda cannot be directly installed with python3.6.
一种解决方法是从 conda-forge 安装它:
conda install -c conda-forge nb_conda
并且不要忘记在新环境中安装 jupyter notebook。
要在虚拟环境中使用 jupyter notebook,需要在您的 venv 中安装 ipykernal。
Inside your virtual environment:
pip install ipykernel
Then run the kernel "self-install" script:
python -m ipykernel install --user --name=my-virtualenv-name
现在,你的新内核已经安装好了。
我的 mac 这个目录里有一个 conda env
/anaconda/envs/dl
然后我通过 activate source dl
当我启动 jupyter 时,它不显示 conda env dl,只显示它使用 python3 而不是 conda env。
Notebook python3
如果我点击终端,它会显示这个。
安装 nb_conda ,它应该可以工作。
您需要安装 nb_conda,但是目前 nb-conda cannot be directly installed with python3.6.
一种解决方法是从 conda-forge 安装它:
conda install -c conda-forge nb_conda
并且不要忘记在新环境中安装 jupyter notebook。
要在虚拟环境中使用 jupyter notebook,需要在您的 venv 中安装 ipykernal。
Inside your virtual environment:
pip install ipykernel
Then run the kernel "self-install" script:
python -m ipykernel install --user --name=my-virtualenv-name
现在,你的新内核已经安装好了。