A plurality of kernel Jupyter Notebook

A plurality of kernel Jupyter Notebook

Preface:

Anaconda arranged at a plurality of environment, Jupiter Notebook only installed in basethe environment to be able to use in different environments in Jupiter Notebook, as follows.

The system configuration in windows10

step

  1. Open Anaconda Prompt;

  2. View existing environment conda info -e, I now environment as follows:

    # conda environments:
    #
    base                  *  C:\Software\Anaconda3
    tensorflow-cpu           C:\Software\Anaconda3\envs\tensorflow-cpu
    tensorflow-gpu           C:\Software\Anaconda3\envs\tensorflow-gpu
  3. Go to the appropriate environmentconda activate tensorflow-cpu

  4. Installed in the active environmentipykernel

    The number of times, if I use conda install ipykernelhave failed to install;

    Thus using pip installation:pip3 install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple/

  5. Select the environment written in Jupiter Notebook:

    -m ipykernel Python install --user --name to add environment-name --display " display name "
  6. Open the Jupiter Notebook, this time will be able to choose the kernel.

reference

https://blog.csdn.net/tong_he/article/details/78813494

https://blog.csdn.net/u011606714/article/details/77741324

 

Guess you like

Origin www.cnblogs.com/zhuchengchao/p/11619772.html