![apt-get install ipython apt-get install ipython](https://www.itzgeek.com/wp-content/uploads/2019/05/Install-Pip-On-Ubuntu-18.04-2.jpg)
But that doesn't mean pip should manage this packages. The result is that pip -list will also list system packages installed by APT.
#Apt get install ipython code#
I just dived into pip's code and found that pip's list command filters a list of packages provided by pkg_resources.WorkingSet(), which in turn gets its entries from sys.path. Is it normal that when doing a user installation with pip, apt-get installed packages are not detected? Is is a known bug?
![apt-get install ipython apt-get install ipython](https://slidetodoc.com/presentation_image_h2/60cee35c49787a30894ff5f0415273e8/image-4.jpg)
If it can help the diagnostic, this is the Python module path (modelica is the username): python -c "import sys print sys.path" It seems to me that something is wrong with the way pip detects apt-get installed packages, but I cannot figure out what.
![apt-get install ipython apt-get install ipython](http://i.stack.imgur.com/ySZm8.png)
Notice that there is no doubt that ipython (version 5.1.0) is indeed installed in my ~/.local directory, and it runs well (the only adjustment I had to make was adding ~/.local/bin to the PATH variable in ~/.bashrc as mentioned in a dedicated question). Instead, I would expect pip telling me that ipython is already installed. Incidentally, I also get a complaint that pip should be updated to latest version (8.1.2).Įven more intriguing, when I run the same command again, I get the same installation process (only difference: wheels are cached). I don't think it's a version issue, since ipython requires setuptools>=18.5 only.
#Apt get install ipython download#
→ I get the download of many packages from PyPI, including setuptool (27.3.0) and Pygments (2.1.3). This is the command I run (as a user, not as root): $ pip install ipython My question: is it normal that when doing a user installation with pip, apt-get installed packages are not detected? Is is a known bug? Pip itself was installed from the python-pip Ubuntu package (8.1.1), and so are some dependencies like pygments or setuptools (20.7.0). On a quite fresh Ubuntu 16.04, I'm installing ipython with pip, as a user installation.