【发布时间】:2016-05-27 09:16:23
【问题描述】:
我正在使用 Python.7.10 并使用 pip 安装了 beautifulsoup。该软件包已成功安装。但是当我尝试导入 beautifulsoup 时,我收到了这个错误:
ImportError: No module named beautifulsoup
我检查了我已安装的模块列表,并在已安装的模块列表中找到了 beautifulsoup 模块:
【问题讨论】:
-
您阅读文档了吗?如果您安装了
beautifulsoup4,则该模块称为bs4,否则称为BeautifulSoup。但是你不想安装后者,BeautifulSoup 3 3 年前就已经停产了。 -
请始终发布文本,而不是控制台的屏幕截图。
-
如何在python中删除已安装的模块?
-
pip uninstall beautifulsoup.
标签: python python-2.7 beautifulsoup python-module