欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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


相关标签: 装机