python - 卸载安装有 `pip install --egg` 的 python 包

标签 python pip scons package-managers

我使用 pip install --egg scons 安装了 SCons。现在我想卸载它,但是 pip 告诉我没有名为 scons 的包,尽管我仍然可以从命令行调用它。删除它的正确方法是什么?

最佳答案

我也遇到过。我想你试过pip install --egg scons因为正常的安装方式会给您一个错误,如前所述 here .

现在解决你的问题,pip install --egg <package>跨安装的文件传播到虚拟环境目录中。我通过运行 find -name *scons* 找到了这个在我的虚拟环境目录中:

./lib/scons-2.4.1
 <lot of files>
./lib/scons-2.4.1/SCons/compat/_scons_io.pyc
./lib/python2.7/site-packages/scipy/lib/lapack/scons_support.py
./lib/python2.7/site-packages/scipy/lib/lapack/scons_support.pyc
./lib/python2.7/site-packages/scipy/lib/blas/scons_support.py
./lib/python2.7/site-packages/scipy/lib/blas/scons_support.pyc
./man/man1/scons-time.1
./man/man1/sconsign.1
./man/man1/scons.1
./bin/sconsign-2.4.1
./bin/scons-time-2.4.1
./bin/scons-2.4.1
./bin/sconsign
./bin/scons-time
./bin/scons

删除 <virtualenv>/lib/scons-2.4.1 , <virtualenv>/man/man1/scons*<virtualenv>/bin/scons*应该删除安装。

关于python - 卸载安装有 `pip install --egg` 的 python 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30618499/

相关文章:

c++ - 如何设置 scons 输出完整的扩展命令行?

c++ - 构建 .proto 并移动 .h

python - 使用多处理时出现 PicklingError

python - !从无序列表中绘制一个形状 Python

python NameError : name 'file' is not defined

python-3.x - 在 Windows 上的 python 3 上安装斜纹布的问题。

python - 无法通过 pip 在 Python 上安装 pygame (Windows 10)

python - lambda和常规函数之间的python有什么区别?

python - py2exe: WindowsError: [错误 267] 目录名称无效

c++ - 在 scons 中使用 codelite