[Bug 1639354] Re: pip doesn't recognize installation because of missing egg information

Luke Yeager 1639354 at bugs.launchpad.net
Mon Apr 10 17:18:41 UTC 2017


FROM ubuntu:xenial
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        python-pymongo \
        python-pip \
    && rm -rf /var/lib/apt/lists/*
RUN python -c 'import pymongo; print pymongo.__version__, pymongo.__file__'
RUN pip list
RUN pip install pymongo
RUN python -c 'import pymongo; print pymongo.__version__, pymongo.__file__'

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

Title:
  pip doesn't recognize installation because of missing egg information

Status in pymongo package in Ubuntu:
  Incomplete

Bug description:
  Ubuntu 16.04
  pymongo 3.2-1build1

  When most packages (i.e. numpy, scipy, flask, etc.) are installed with
  deb packages, they are installed in such a way that pip can see them.
  This is done by installing "*.egg-info/" directories (find
  /usr/lib/python2.7/dist-packages -type d -name '*egg*').

  pymongo doesn't do this, so pip doesn't realize it is installed and
  will install a second copy of the library even when it's not
  necessary.

  # install python-pymongo package
  sudo apt install python-pymongo

  # the package can be imported
  python -c 'import pymongo'

  # but pip doesn't see it
  pip search pymongo

  # so pip doesn't realize that the pymongo requirement is already fulfilled
  pip install pymongo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pymongo/+bug/1639354/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list