> pip install beautifulsoup4
Requirement already satisfied (use --upgrade to upgrade): beautifulsoup4 in /Library/Python/2.7/site-packages
tomw> python
Python 2.7.9 (default, Jan 23 2015, 19:53:07)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, os, getopt, traceback, codecs, re
>>> from beautifulsoup4 import BeautifulSoup, NavigableString
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named beautifulsoup4
and
> sudo easy_install beautifulsoup4
Password:
Searching for beautifulsoup4
Best match: beautifulsoup4 4.3.2
Adding beautifulsoup4 4.3.2 to easy-install.pth file
Using /Library/Python/2.7/site-packages
Processing dependencies for beautifulsoup4
Finished processing dependencies for beautifulsoup4
> python
Python 2.7.9 (default, Jan 23 2015, 19:53:07)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, os, getopt, traceback, codecs, re
>>> from beautifulsoup4 import BeautifulSoup, NavigableString
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named beautifulsoup4
now wtf???