1. 如果想在jupyter notebook中切换环境
需要打开anaconda prompt
输入 conda install nb_conda 进行安装
2. 在命令行窗口进不去jupyter notebook
报错:AttributeError: type object 'IOLoop' has no attribute 'initialized'
解决方案:conda install tornado=4.5
3. Jupyter notebook中出现Kernel errors
首先进入虚拟环境
输入 conda install pywin32
4. jupyter添加或删除内核
切换到要添加的环境,确认已安装 ipykernel
python -m ipykernel --version
如果没有安装,则安装:python -m pip install ipykernel
jupyter安装内核(kernel)
python -m ipykernel install --user [ --name= ]
注意:在linux系统中由于用户权限问题,不能省略 --user !
查看jupyter notebook kernel
jupyter kernelspec list
jupyter删除内核
jupyter kernelspec remove kernelname