猿问

按照教程写完了,但是运行出错,Traceback (most recent call last):

Traceback (most recent call last): =========》第一个问题

  File "/Users/sherry/Downloads/baike_spider-master/baike_spider/sider_main.py", line 2, in <module>

    from baike_spider import html_downloader, html_parser, html_outputer,\

  File "/Users/sherry/Downloads/baike_spider-master/baike_spider/html_parser.py", line 2, in <module>

    from bs4 import BeautifulSoup

ImportError: No module named bs4

ImportError: No module named bs4 ============》 第二个问题:明明下载了bs4


xunie-Mac:~ sherry$ pip install BeautifulSoup4

Requirement already satisfied: BeautifulSoup4 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages



xueying234
浏览 5448回答 0
0回答
随时随地看视频慕课网APP

相关分类

Python
我要回答