【发布时间】:2019-11-15 03:41:27
【问题描述】:
这是显示我无法导入 beautifulsoup4 的完整日志
$ python
Python 3.7.5 (default, Oct 23 2019, 08:30:10)
[Clang 8.0.7 (https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf6 on linux
Type "help", "copyright", "credits" or "license" for more information.
import bs4
from bs4 import beautifulsoup4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'beautifulsoup4' from 'bs4' (/data/data/com.termux/files/usr/lib/python3.7/site-packages/bs4/__init__.py)
import beautifulsoup4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'beautifulsoup4'
【问题讨论】:
-
pip install beautifulsoup4
-
先尝试安装漂亮的汤,方法是输入命令@αԋɱҽԃαмєяιcαη 提到
-
你确定字符大小写吗?
-
提前致谢。它(Termux)告诉我beautifulsoup4已经安装成功。但是我不能使用beautifulsoup4。