[Tutor] Help on input error

Kent Johnson kent37 at tds.net
Thu Aug 20 03:26:19 CEST 2009


On Wed, Aug 19, 2009 at 7:14 PM, David Shunick<dshunick at comcast.net> wrote:
> I'm trying to learn Python, but keep running into the erroor message
> ImportError: no module named area.
>
> I created a file area.py in IDLE. I'm using Python 3.1 and Window XP. After
> saving the file in c:/Python31/Lib/Python  Modules/area.py
>
> I can run the program using F5. But when I start a new shell, and enter
> import area, that's when I get the error message. And it's not just this
> program.I have the same problem with all that I try to import.


"Python Modules" is not a folder recognized by Python. Try putting the
file in Python31/Lib/site-packages/area.py

Kent


More information about the Tutor mailing list