0

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?

Jon Clements
  • 138,671
  • 33
  • 247
  • 280
Nada Alami
  • 13
  • 1
  • 5
  • Are you sure that you installed it for the Python version you are using? You might need to do `easy-install-3` or something similar instead of `easy-install`. What system are you running on? – filmor Jan 25 '13 at 10:59
  • @filmor Yeah I checked it. – Nada Alami Jan 25 '13 at 11:00
  • Nada - I would go through the `swampy` tag and look at some of the previous questions and answers - this seems to be an oft asked question... – Jon Clements Jan 25 '13 at 11:06

1 Answers1

0

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?

SpankMe
  • 836
  • 1
  • 8
  • 23