Home >Backend Development >Python Tutorial >使用setup.py安装python包和卸载python包的方法

使用setup.py安装python包和卸载python包的方法

WBOY
WBOYOriginal
2016-06-16 08:46:052098browse

我们使用 python setup.py install 来安装python包,但是如何卸载呢?

只能手动删除安装的文件

可以使用如下命令

复制代码 代码如下:

python setup.py install --record files.txt 记录安装后文件的路径

cat files.txt | xargs rm -rf  删除这些文件

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn