pip freeze does not list repo url #609

DataGreed opened this Issue Jul 24, 2012 · 2 comments


None yet
3 participants

qwcode commented Jul 28, 2012

pip's ability to discern where the install came from is limited after the fact using pip freeze.
pip internally relies upon setuptools to find all the installed distributions.
pip then checks to see if any of them are "editable"/-e vcs installations.
if editable, then it will print out the vcs url.
if not editable, then just the name=version spec.

btw, since you asked about "-e" in the stack link, "-e" or "editable" is an enhancement of what setuptools called a "develop" install. this is an "installation" that does not occur via copying packages into site-packages.
but rather a link of sorts is made in site-packages back to the source location of the project.
that way you can "develop" or "edit" the project live while it's installed.
for "-e" vcs installs, pip uses a "src" subdirectory of the virtualenv or sys.prefix to clone the project.
if you install from a vcs url w/o "-e", pip builds a distribution locally and installs from that, and at that point pip freeze (i.e. setuptools) doesn't know it came from vcs.

@fabiocerqueira fabiocerqueira added a commit to fabiocerqueira/pip that referenced this issue Aug 14, 2012

@fabiocerqueira fabiocerqueira Fixed issue #609 - method to detect VCS backend 3870f51

xavfernandez added the freeze label Oct 7, 2015


xavfernandez commented Oct 15, 2016

A typical example is given in #4005.

$ pip install git+https://github.com/chadmiller/textbot_metapriv.git#egg=textbot_metapriv   # a private package that will never be in PyPI
$ pip freeze |grep bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment