Melissa Stewart
Melissa Stewart

Reputation: 3625

ModuleNotFoundError: No module named 'Ipython'

I'm trying to parse the following line of code in an iPython notebook.

from Ipython.display import display, Image

I get the following error,

ModuleNotFoundError: No module named 'Ipython'

When I run pip3 install Ipython

Here's what I get.

Requirement already satisfied: Ipython in ./.envs/dl/lib/python3.6/site-packages

I'm running the code in the same virtual env in which ipython is installed. What am I missing. My python version is 3.6.

Upvotes: 6

Views: 25058

Answers (2)

Kaouter Karboub
Kaouter Karboub

Reputation: 11

I had this problem too. You have to pay attention to which python version you are using, which pip version, and which environment too. I made a stupid mistake at first and installed TensorFlow on a virtualenv, then tried to call IPython which means my function and installation had different paths. I recommend using "python -m pip install"

Upvotes: 1

Bijoy
Bijoy

Reputation: 1131

Its from IPython.display import display, Image

'P' also caps in IPython

Upvotes: 9

Related Questions