Python Questions - July 25, 2015

BartC bc at freeuk.com
Tue Jul 28 11:46:04 CEST 2015


On 28/07/2015 09:50, Terry Reedy wrote:
> On 7/27/2015 7:14 PM, Rob Gaddi wrote:
>> On Sun, 26 Jul 2015 13:49:57 +0100, BartC wrote:
>>> How do you actually install Numpy in Windows?
>
> I believe 'pip install numpy' works

C:>pip install numpy

  'pip' is not recognized as an internal or external command,
  operable program or batch file.

So you try and install pip, and it's a .whl file:

  'Windows can't open this file'.

It seems that you might need pip to install pip. But you investigate, 
and find .whl is just a .zip file. So you try renaming it to .zip, unzip 
it, and now get 200 files, none of which is called pip!

A half-hearted attempt to run wheel.py gives an error, not unexpected. 
But what were we trying to do? It was to install numpy, not pip! It is 
fun however seeing how many layers of complexity people like adding, in 
order to make things 'simpler'. A couple more of layers, and things will 
become completely impossible I think.

Either that or the machine will grind to a halt first.

(I'm still reeling from the size of that Anaconda download. Apparently 
it contains a whole bunch of stuff, nothing to do with numpy, that I 
don't need. But one of the listed packages was 'libffi', which is 
puzzling. This library lets a C-like language call functions with 
runtime-determined argument types. How would that be used in Python?)

-- 
Bartc


More information about the Python-list mailing list