Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't setuptools 1.3.1 appear when I pip freeze?

Tags:

I am running virtualenvwrapper and friends on Ubuntu 12.04 (virtualenvwrapper 1.7.1.2, virtualenv 1.7.1.2, pip 1.0, Distribute 0.6.24, Python 2.7). To be able to pip install matplotlib I need a newer version of Distribute/setuptools, so I do the following:

$ mkvirtualenv new_venv
$ pip install matplotlib # fails
$ easy_install -U distribute
# installs Distribute 0.7.3 in the venv,
# which then installs setuptools 1.3.1
$ pip install matplotlib # works

However, when I run pip freeze I get:

argparse==1.2.1
distribute==0.7.3 # here's Distribute
matplotlib==1.3.1
nose==1.3.0
numpy==1.8.0
pyparsing==2.0.1
python-dateutil==2.2
six==1.4.1
tornado==3.1.1
wsgiref==0.1.2

Where is setuptools? I've tried just pip install setuptools and it also fails to show up there.

like image 912
lofidevops Avatar asked Nov 07 '13 13:11

lofidevops


People also ask

Does pip use setuptools?

pip is a higher-level interface on top of setuptools or Distribute. It uses them to perform many of its functions but avoids some of their more controversial features, like zipped eggs.

What is needed to freeze pip?

The most common command is pip freeze > requirements. txt , which records an environment's current package list into requirements. txt. If you want to install the dependencies in a virtual environment, create and activate that environment first, then use the Install from requirements.

What is pip freeze command?

pip freeze shows packages YOU installed via pip (or pipenv if using that tool) command in a requirements format. Remark below that setuptools, pip, wheel are installed when pipenv shell creates my virtual envelope.


1 Answers

pip won't list packages that pip itself depends on unless you tell it to. You may include such packages by doing: pip freeze --all

freeze lists packages in a requirements-format - for use in requirements files etc - while list is just that, a list.

See Pip freeze vs. pip list for more details.

like image 129
ElToro1966 Avatar answered Sep 20 '22 17:09

ElToro1966