[Tutor] Help on input error
dshunick at comcast.net
dshunick at comcast.net
Fri Aug 21 02:11:21 CEST 2009
Changing the folder to site-packages did the trick.
Thanks
David Shunick
----- Original Message -----
From: "Kent Johnson" <kent37 at tds.net>
To: "David Shunick" <dshunick at comcast.net>
Cc: tutor at python.org
Sent: Wednesday, August 19, 2009 6:26:19 PM GMT -08:00 US/Canada Pacific
Subject: Re: [Tutor] Help on input error
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090821/24c6d2a5/attachment.htm>
More information about the Tutor
mailing list