1
我安裝BeautifulSoup4使用PIP在OSX,但我還沒有得到這個錯誤:導入錯誤:沒有模塊名爲BS4
dyn-72-33-214-45:craiglist mona$ python t1.py
Traceback (most recent call last):
File "t1.py", line 1, in <module>
from bs4 import BeautifulSoup
ImportError: No module named bs4
不知道如何解決它?
dyn-72-33-214-45:craiglist mona$ pip install BeautifulSoup4
....
Successfully installed BeautifulSoup4
Cleaning up...