ImportError on IPython.paths

Problem

I installed a Python package using pip3. When I imported that newly installed package, it complained about IPython:

ImportError: No module named 'IPython.paths'

Solution

It turns out that only recent versions of the IPython package had IPython.paths. I had an older version of IPython installed using apt. The newly installed pip3 package was built around a more recent version of IPython. The problem went away once I removed the IPython packaged installed using apt and force installed its recent pip3 package:

$ sudo apt remove ipython
$ sudo pip3 install --upgrade ipython

Tried with: Ubuntu 16.04

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.