当我冻结时,为什么没有出现setuptools 1.3.1? [英] Why doesn't setuptools 1.3.1 appear when I pip freeze?
问题描述
我在Ubuntu 12.04(virtualenvwrapper 1.7.1.2,virtualenv 1.7.1.2,pip 1.0,Distribute 0.6.24,Python 2.7)上运行virtualenvwrapper
和朋友.为了能够pip install matplotlib
,我需要更新版本的Distribute/setuptools,所以我执行以下操作:
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
但是,当我运行pip freeze
时,我得到了:
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
setuptools
在哪里?我只尝试了pip install setuptools
,它也没有出现在这里.
Where is setuptools
? I've tried just pip install setuptools
and it also fails to show up there.
推荐答案
pip 不会列出 pip 本身依赖的软件包,除非您告知.您可以通过执行以下操作来包括此类软件包:
pip freeze --all
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
冻结以需求格式列出软件包-供需求文件等使用-而 list 只是列表.
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.
这篇关于当我冻结时,为什么没有出现setuptools 1.3.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!