Python - 装机系列8 给Jupyter增加内核(环境)
程序员文章站
2024-03-08 20:13:58
...
说明
内核对应着包环境(virtualenv),增加内核就是允许jupyter调用环境
内容
- 查看
└─ $ jupyter kernelspec list
Available kernels:
yoloenv 【PATH】/Library/Jupyter/kernels/yoloenv
python3 /usr/local/share/jupyter/kernels/python3
- 安装:**虚拟环境后安装
pip3 install ipykernel
activate env_name
python3 -m ipykernel install --name env_name
- 检查
└─ $ jupyter kernelspec list
Available kernels:
yoloenv 【Path】/Library/Jupyter/kernels/yoloenv
python3 【Path】/env/flk/bin/../share/jupyter/kernels/python3
flkenv /usr/local/share/jupyter/kernels/flkenv
1
上一篇: kafka群起脚本
下一篇: zookeeper分布式安装