点冻结不显示所有已安装的软件包 [英] pip freeze does not show all installed packages
本文介绍了点冻结不显示所有已安装的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用virtualenv
.我已安装fabric
和pip
.但是pip freeze
对此没有任何提示.包在我的virtualenv
中,但是pip对此保持沉默.为什么会这样呢?有什么方法可以调试吗?
I am using a virtualenv
. I have fabric
installed, with pip
. But a pip freeze
does not give any hint about that. The package is there, in my virtualenv
, but pip is silent about it. Why could that be? Any way to debug this?
推荐答案
我自己尝试过此操作:
在"env"目录中创建一个virtualenv:
create a virtualenv in to the "env" directory:
$virtualenv2.7 --distribute env
New python executable in env/bin/python
Installing distribute....done.
Installing pip................done.
下一步,激活虚拟环境:
next, activate the virtual environment:
$source env/bin/activate
提示更改.现在安装结构:
the prompt changed. now install fabric:
(env)$pip install fabric
Downloading/unpacking fabric
Downloading Fabric-1.6.1.tar.gz (216Kb): 216Kb downloaded
Running setup.py egg_info for package fabric
...
Successfully installed fabric paramiko pycrypto
Cleaning up...
pip freeze
显示正确的结果:
(env)$pip freeze
Fabric==1.6.1
distribute==0.6.27
paramiko==1.10.1
pycrypto==2.6
wsgiref==0.1.2
也许您忘了激活虚拟环境?在* nix控制台上,键入which pip
进行查找.
Maybe you forgot to activate the virtual environment? On a *nix console type which pip
to find out.
这篇关于点冻结不显示所有已安装的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文