iasysdl (1) [Avatar] Offline
#1
Have the edition of the book with Copyright 2012

Followed the instructions for installing Beautiful Soup on a Mac with Python 2.7. No errors reported on install.

Then went to run my stocktracker1.py, but got:

Traceback (most recent call last):
File "stocktracker1.py", line 11, in <module>
from BeautifulSoup import BeautifulSoup
ImportError: No module named BeautifulSoup

How does one check what libraries are installed with Python? What might I have done wrong?
anthony.briggs (30) [Avatar] Offline
#2
Re: Installing Beautiful Soup
Hmm, it sounds like you've installed BeautifulSoup under one version of Python, and are running it with the other.

What happens if you use Python 2.6 explicitly? eg. python26 stocktracker1.py ?