gpt4 book ai didi

python - 如何从源代码卸载 beautifulsoup?

转载 作者:行者123 更新时间:2023-11-30 23:46:23 24 4
gpt4 key购买 nike

我安装了解压BeautifulSoup-3.2.0.tar.gz

python setup.py install

卸载它的命令是什么?我注意到有一个名为 python-beautifulsoup 的 Linux 发行版特定软件包可用。我想安装系统特定的 beautifulsoup。

我尝试过:

python setup.py uninstall

最佳答案

你可以尝试:

pip uninstall BeautifulSoup

(pip 命令应该有一个名为 python-pip 的包)。

如果这不起作用,您必须找出 BeautifulSoup 的安装位置,然后将其删除。您可以在交互式提示中查看模块所在的位置:

>>> import BeautifulSoup
>>> BeautifulSoup

关于python - 如何从源代码卸载 beautifulsoup?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9057609/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com