[Tutor] Idle - ImportError: No module named numpy

Markos markos at c2o.pro.br
Sat Mar 14 16:40:21 CET 2015


On 13-03-2015 12:34, Oscar Benjamin wrote:
> On 11 March 2015 at 19:43, Markos<markos at c2o.pro.br>  wrote:
>    
>> On 10-03-2015 16:48, Oscar Benjamin wrote:
>>      
>>> Looks like a bug in pip or in the get-pip script. What version of
>>> python3 are you using?
>>>        
>> But the command to install numpy gave an error message:
>>
>> # python3 -m pip install numpy
>>
>> Collecting numpy
>>    Exception:
>>    Traceback (most recent call last):
>>      File
>> "/usr/local/lib/python3.1/dist-packages/pip-6.0.8-py3.1.egg/pip/basecommand.py",
>>      
> Ah okay. You're using Python 3.1. Python 3.1 is not supported by pip,
> setuptools or numpy. That may explain the error messages that you get
> with pip. Also it explains why there is no python3-numpy package in
> your repositories. Essentially most major Python packages are aimed at
> Python 2.6/2.7 and Python 3.2 upwards but not Python 3.0 or 3.1. Does
> squeeze have a newer version of Python 3 (e.g. 3.2)?
>
> It may be possible to get numpy to work with python 3.1 but I would
> recommend either:
> 1) Stick to Python 2.
> 2) Upgrade to wheezy - I haven't checked but I assume that it has a
> newer version of Python 3.
> 3) Install Python 3.4 manually (by compiling it yourself).
>
> If you do want to try and install numpy for python 3.1 then you would
> download the .tar.gz from here:
> https://pypi.python.org/pypi/numpy
> Then extract it, cd in, and run "python3 setup.py install".
>
> The people who make numpy don't support Python 3.1 though which means
> that they don't try to guarantee that it will work so you may
> encounter more problems.
>
>
> Oscar
>
>    
Hi Oscar,

Despite failing to install numpy for Python 3.1, this exchange of 
messages helped me to understand the "Python world": ^)

Thank you very much for your attention.
Markos


More information about the Tutor mailing list