我正在使用Python 2.7.13
我使用命令提示符安装了美观汤:easy_install beautifulsoup4
,我收到了带有best match', 'downloading ..... et
c ++和最后一个error:None
的消息。
然而,当运行一个脚本时,它说
from BeautifulSoup import *
我收到了错误信息
ImportError: No module named BeautifulSoup
error: None
是否意味着它已正确安装beautifulsoup
时,它实际上是做什么的,它会永远存在吗?每次使用Python时都需要安装它吗?它安装在哪里,例如,我应该在哪里检查它是否真的在那里?from bs4 import BeautifulSoup
也给出了同样的答案
发布于 2017-01-02 22:56:16
您可以使用PIP(python包索引)安装漂亮汤。
pip install beautifulsoup4
https://stackoverflow.com/questions/41437914
复制