ubuntu 虚拟环境下启动jupyter notebook

conda activate tf
where is pip
/home/studieren/anaconda3/envs/tf/bin/pip install -i jupyter https://pypi.douban.com/simple
/home/studieren/anaconda3/envs/tf/bin/pip install -i ipykernel https://pypi.douban.com/simple
#!!!
python -m ipykernel install --user --name=env_name
或者
ipython kernel install --user --name=tf
jupyter notebook
查看kernel
jupyter kernelspec list
删除kernel
jupyter kernelspec remove kernel-name

我的conda命令一直连不上清华源,所以用pip代替conda,我的conda需要重新安装,所以懒得弄,就一直用pip来代替,并不是个好方法。毕竟,conda迟早要更新的。

猜你喜欢

转载自blog.csdn.net/qq_40297851/article/details/105584845