简单方法安装速览:
1. 安xiongbao环境与配置jupyter的kernel
conda create -n name(xiongbao) python==3.7 ipykernel
source activate xiongbao
python –m ipykernel install --user --name kernel_name(xiongbao)
pip install jupyter
2. 如上安装完环境,配置完jupyter ,然后再启动 jupyter-notebook
jupyter notebook
3. 如图,新建的环境xiongbao 加到了kernel里面, kernel里该环境的名字也是xiongbao
安装成功,下面就不用看了。。
1. 创建环境
# 创建环境时把ipykernel一起装
conda create -n name python==3.7 ipykernel
或者
# 不装ipykernel 之后再装
conda create -n name python==3.7
2. 将kernel加入到jupyter中
问题:怎么将kernel加到jupyter中?
激活环境
source activate xxxx
安装kernel
在新的环境中用
conda install ipykernel 安装ipykernel,
再在此环境下用指令
个人账户:
python –m ipykernel install --name kernel_name(若在服务器的个人账户下,要--name前加--user)
服务器账户下:
python –m ipykernel install --user --name kernel_name
注意:如果报错,重新连接一下vpn, 再重新连一下服务器。
问题:怎么将kernel从jupyter中删除?
jupyter kernelspec list
jupyter kernelspec remove kernel_name