Public bug reported:

On a pretty fresh Ubuntu 16.04, I'm installing some Python packages with
pip (as a user). (pip version is 8.1.1). My example package is ipython.
The command:

$ pip install ipython

generates a bunch of downloads, including some packages that I
previously installed with aptitude (ex : python-pygments). But it's not
just about .deb Python package, it's also about the pip installed
packages. Indeed, if I run again:

$ pip install ipython

then the installation is performed again (only difference: the cache of
wheel files is being used). Obviously pip doesn't recognize the packages
already installed (or maybe the end of the installation process failed
?). On the other hand, there is no visible problem with ipython
installation: it seems to run fine.

I don't remember having done many tweaks to my Ubuntu (it's a quite
fresh VM) that could explain this broken behavior in the detection of
dependencies. I've only added .local/bin to my PATH so that the ipython
command runs properly (I indeed got bitten by the issued predicted by
Donald Stufft in https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=725848). Also, among the "exotic" Python packages,
I have python-omniorb.

here are my PATH and Python module path variables:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/modelica/.local/bin

$ python -c "import sys; print sys.path"
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', 
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', 
'/usr/lib/python2.7/lib-dynload', 
'/home/modelica/.local/lib/python2.7/site-packages', 
'/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', 
'/usr/lib/python2.7/dist-packages/PILcompat', 
'/usr/lib/python2.7/dist-packages/omniORB/COS', 
'/usr/lib/python2.7/dist-packages/gtk-2.0']


(notice: I've reported similar behavior as a question at
http://askubuntu.com/questions/828642/pip-doesnt-know-of-apt-get-
installed-packages but didn't get that much feedback, except that pip
should be upgraded to 8.1.2, but I don't feel comfortable upgrading pip
with a broken pip...)

** Affects: python-pip (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1628432

Title:
  pip user install doesn't know of previously  installed package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1628432/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to