Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

ImportError on IPython.paths

📅 2018-Mar-27 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive


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

ImportError: No module named 'IPython.paths'


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