Python – ImportError: No module named IPython

ipythonpythonpython-2.7

When i try to use from IPython.display import clear_output, display_html, then i show the error:

Error Image
(ImportError: No module named IPython)

I am using Python 2.7.13, and im trying to make the game of life from John Conway. I am following this link: http://nbviewer.jupyter.org/url/norvig.com/ipython/Life.ipynb

I have read another questions and answers about it, but any answer works for me. First, this error is showed in command line, and when i try to run this code in a file. Second, this error is direct to IPython, not submodule or something similiar.

Best Answer

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