I’m running Mac OS X 10.7.3 on a Macbook Pro. It came with Python 2.7.1 installed. I need the beautiful soup library. So I did the following:
1) went to crummy.com and downloaded beautifulsoup4-4.0.2.tar.gz
2) uncompressed it
3) navigated to uncompressed directory and typed the following
python setup.py install
but i got a error that i couldn’t write to some directory.
4) so i ran:
sudo python setup.py install
No Errors! Good, right? Not exactly. When I try to run a program with the following:
from BeautifulSoup import *
I receive the following error:
ImportError: No module named BeautifulSoup
What did I do wrong?
Thanks!
For BeautifulSoup4 you have to use
Check the document: BS4 document