jupyter notebook 更换虚拟环境
文章目录
一、查看当前所有虚拟环境
打开Anaconda Powershell Prompt,输入以下代码
conda env list
二、激活所需环境
继续输入:
conda activate pycharm_python
三、安装ipykernel包
pip install ipykernel -i https://pypi.douban.com/simple
四、将环境加载进jupyter中
python -m ipykernel install --name pycharm_python
五、打开jupyter notebook
打开后可以在右上角看到添加的pycharm_python环境
六、查看jupyter 的环境有哪些
jupyter kernelspec list