1. 安装ipykernel

conda install ipykernel

2. **conda环境

source activate cym

3. 将环境写入notebook的kernel中

python -m ipykernel install --user --name 环境名 --display-name “python 环境名”

python -m ipykernel install --user --name cym --display-name “python cym”

4. 打开notebook

jupyter notebook

PS: 有时候第1步,安装完ipykernel后,打开jupyter notebook,就自动检测到本地的conda环境的. 所以可以安装完ipykernel后,先打开jupyter notebook看看有没有自动检测到了自己的conda环境:
jupyter notebook 添加 conda 环境

相关文章:

  • 2021-09-28
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-11-02
  • 2021-10-27
猜你喜欢
  • 2021-04-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-08-13
  • 2021-12-17
相关资源
相似解决方案