I am going through a book which uses libraries that are not packaged through apt-get. Hence, I need to use pip, as this explains quite nicely. In order to maintain stability of the core system, I am advised by the aforementioned article to use "pip --user" to install python packages.

I want to use IPython.

After reading Manu's answer here, I know how to install IPython through pip. However, I am unable to discover how to run IPython after that step, and it is unclear to me whether it will then also allow me to use the libraries installed through "pip install --user"

Hence: How do you use ipython with pip --user installed libraries?

To pose the whole, same question, in a different manner;

Manu, after reading your answer, this is my question:

"And then, how do you use that installed version of ipython? I'm coming from running ipython3 directly in terminal, but I need the "bleeding edge" pip version of ipython, in order to be able to use pip installed libraries in ipython. Is that possible?"

  • More importantly; how do I delete my own questions? This needs to go on stackoverflow, not askubuntu. Hence why Manu had to answer his own question, and got downvoted into obvlion. Sorry! Jul 22 '17 at 11:03
  • Install ipython in the python virtual environment and run from there, I suppose! Jul 22 '17 at 12:15
  • Seems recursive. Is that a joke? Jul 22 '17 at 14:56
  • There's no reason to delete. You're not asking a python question, really, you are asking a question about the python interpreter and it's big brother, ipython. These are programs running on Ubuntu and therefore on topic.
    – terdon
    Jul 24 '17 at 12:42

The answer is here. Credit due to Griboullis.

In Ubuntu, pip install --user installs the ipython executable in the $HOME/.local/bin directory. This directory needs to be added to the $PATH environment variable.


Use Anaconda. It prepares your python environment. Python, Ipyhton, pip and some libraries are installed with it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.