On 02/06/2014 02:33, Charles Agriesti wrote:
from swampy.World import World
world = World()
ImportError: No module name World
These scripts run with no problem as long as the file location is the
python27 folder. But not from outside the folder.
Other modules, like math, import with no problem from other locations
import math
from math import pi
2*pi
6.28...
how can I fix this?
thanks in advance
As swampy is on pypi you should have installed it using easy_install or
pip, so that it is under the site-packages directory. Python would have
found it there automatically. I'm guessing that you've downloaded a tar
or zip file and manually installed it soemwhere else, am I correct?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor