[Tutor] Swampy: No module name World
breamoreboy at yahoo.co.uk
Mon Jun 2 14:24:33 CEST 2014
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
> 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.
This email is free from viruses and malware because avast! Antivirus protection is active.
More information about the Tutor