import newer

Discussion in 'Python' started by xinyou yan, Mar 20, 2011.

  1. xinyou yan

    xinyou yan Guest

    I begin to study with <<learning python>>

    I met a problem with import.

    first
    I creat a file hello.py

    then in fedora /14
    I type python to the interpreter

    >>> import hello

    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ImportError: No module named hello

    What should i do now.
    The current path is not added defaultly ?
     
    xinyou yan, Mar 20, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Yan-Hong Huang[MSFT]
    Replies:
    3
    Views:
    500
    Yan-Hong Huang[MSFT]
    Jul 4, 2003
  2. =?Utf-8?B?bV9sYWNp?=
    Replies:
    2
    Views:
    520
    =?Utf-8?B?bV9sYWNp?=
    Oct 15, 2004
  3. =?Utf-8?B?RWQgU3RhZmZpbg==?=

    How to set when "Check for newer versions of stored pages" happens

    =?Utf-8?B?RWQgU3RhZmZpbg==?=, Feb 8, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    7,658
    =?Utf-8?B?UmljaGFyZA==?=
    Apr 3, 2006
  4. Stan Goodman

    Even older fart, even newer newbie

    Stan Goodman, Jul 3, 2003, in forum: Java
    Replies:
    11
    Views:
    712
    Stan Goodman
    Jul 4, 2003
  5. Replies:
    2
    Views:
    438
Loading...

Share This Page