[Tutor] Idle - ImportError: No module named numpy

boB Stepp robertvstepp at gmail.com
Sat Mar 7 01:43:34 CET 2015


On Fri, Mar 6, 2015 at 12:27 PM, Markos <markos at c2o.pro.br> wrote:
> Hi,
>
> I'm beginning to study the numpy.
>
> When I open a terminal (Debian Squeeze) and run the python interpreter the
> command "import numpy as np" run without errors.
>
> But when I run the same command on idle3 the following error appears.
>
>>>> import numpy as np
> Traceback (most recent call last):
>   File "<pyshell#0>", line 1, in <module>
>     import numpy as np
> ImportError: No module named numpy
>
> How configure idle to load the numpy module?

You don't by chance have Python 2 installed as well as Python 3, where
Python 2 is associated with your terminal session? And your numpy
module is for Python 2, not 3? That is my first thought, but I'm sure
the experts will chime in shortly with a more definitive diagnosis.


-- 
boB


More information about the Tutor mailing list