Elementric(?) import problem?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rasmus

    Elementric(?) import problem?

    Hi.

    Still learning python, I have searched for guides, and found this one:


    When trying some of the examples like[color=blue][color=green][color=darkred]
    >>> from Numeric import *
    >>> a = array( (1,2,3) )[/color][/color][/color]

    I get the error:[color=blue][color=green][color=darkred]
    >>> from Numeric import *[/color][/color][/color]
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    ImportError: No module named Numeric[color=blue][color=green][color=darkred]
    >>>[/color][/color][/color]

    I might have some setup problems?
    I'm running winXP, please advice me of either where to read, or what to do.

    Thanks in advance,

    Rasmus


  • Peter Hansen

    #2
    Re: Elementric(?) import problem?

    Rasmus wrote:[color=blue]
    >
    > Still learning python, I have searched for guides, and found this one:
    > http://www.cs.lth.se/Education/LU/ku...rogramming.pdf
    >
    > When trying some of the examples like[color=green][color=darkred]
    > >>> from Numeric import *[/color][/color][/color]

    You need to download the package, as it's not part of the standard
    distribution: http://www.pfdubois.com/numpy/

    See the last page of your PythonProgrammi ng.pdf document for links
    including the above...

    -Peter

    Comment

    • Rasmus

      #3
      Re: Elementric(?) import problem?

      Thanks.

      Hope this will teach me to read the whole manual before asking :-)

      R

      --
      PS: Due to heavy(!) spam reception (1,000-26,000+/week), I use a fake sender
      address. Please answer in the newsgroup. And don't forget to hide your own
      address to avoid ending up in tons of spam.


      "Peter Hansen" <peter@engcorp. com> wrote in message
      news:3FD4C9A9.A 8A03CBB@engcorp .com...[color=blue]
      > Rasmus wrote:[color=green]
      > >
      > > Still learning python, I have searched for guides, and found this one:
      > > http://www.cs.lth.se/Education/LU/ku...rogramming.pdf
      > >
      > > When trying some of the examples like[color=darkred]
      > > >>> from Numeric import *[/color][/color]
      >
      > You need to download the package, as it's not part of the standard
      > distribution: http://www.pfdubois.com/numpy/
      >
      > See the last page of your PythonProgrammi ng.pdf document for links
      > including the above...
      >
      > -Peter[/color]


      Comment

      Working...