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?
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?