Importing Swampy (Python learning module)

972 Views Asked by At

I'm working on"ThinkPython" and in chapter4 we're asked to download swampy (a learning module). Well I followed the instructions here and I installed it, but when I try to import in IDLE(Python GUI) using: import swampy.TurtleWorld, I get the following:

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import swampy.TurtleWorld
ImportError: No module named 'swampy'

How can I fix this?

1

There are 1 best solutions below

0
On BEST ANSWER

This means that the module have not installed correctly - Python doesnt see it in its modules path. What's your $PYTHONPATH, and what's your OS, and have you checked if the module is in your $PYTHONPATH?