[ipython] install ipykernel in multiple environments 多conda环境安装使用ipython

refer to this link.

I have multiple environments in anaconda, but ipython breaks and often casts module not found exception.

I had thought this is solved in this, but clearly it is not. python -m ipykernel install --user enables only the full execution of ipython in only one environment, and all the other keeps breaking.

This doc from the official site describes in detail how to install ipython in multiple environments:

  1. switch to either environment and make sure ipykernel is installed
    conda install ipykernel
  2. specify name for different environments
    python -m ipykernel install --user --name other-env --display-name "Python (other-env)"

你可能感兴趣的:(坑)