ImportError: No module named IPython

For Anaconda try,

conda install -c anaconda ipython

Use this code to install the IPython library:

!pip install ipython
import IPython

Well, this works on Google Colab.


If you scrolled this far you may want to try:

import IPython

as opposed to import Ipython. Notice that 2 letters are capitalized


Ok, finally i achieved my goal.

  1. I wrote ipython --version but i found, it was not installed.
  2. I tried to install it, with pip. I went to C:\Python27\Scripts, here is pip, you can try in this directory, or add to environment variables.
  3. I tried to install ipython, but i found a error

error: Unable to find vcvarsall.bat

so i installed visual studio c++ 9.0, the version to python 2.7.

  1. pip install ipython