Jupyter notebook 的 Anaconda 配置

Anaconda||(踩坑无数,含泪总结!!!)Anaconda的卸载与安装(tensorflow+Keras+spyder+添加镜像源)

下载anaconda之后,用pycharm分配虚拟环境自己摸索一下就会了
但是jupyter一直只有一个虚拟环境,于是上网搜索了一下
jupyter需要手动分配内核,具体参考:

https://blog.csdn.net/weixin_44799217/article/details/116056976
https://zhuanlan.zhihu.com/p/81605893

总结

每次创建虚拟环境的时候,两步配置jupyter内核:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ipykernel # 在该虚拟环境下安装 ipykernel 包
python -m ipykernel install --name 环境名 # 向 jupyter 中添加虚拟内核

赞赏