6

I realize a question that relates to this has already been asked at Cannot install numpy from wheel format , but the solution presented there does not work for me. I have asked on that thread too (by answering!) but I'm not getting any replies, so here goes:

I have been trying to install matplotlib, but I first need to install numpy. I downloaded the file numpy-1.8.2+mkl-cp26-none-win_amd64.whl, then tried to install it using pip. The error message I keep getting is:

"numpy-1.8.2+mkl-cp26-none-win_amd64.whl is not a supported wheel on this platform". The solution suggested by the thread I referenced above, was to replace "_amd64" by "32", making the filename numpy-1.8.2+mkl-cp26-none-win32.whl. This did not work either, and I get exactly the same error as above.

Any suggestions?

I use Python 3.4.2 64-bit on Windows 7 64-bit.

KansaiRobot
  • 7,564
  • 11
  • 71
  • 150
Konrad
  • 2,207
  • 4
  • 20
  • 31
  • You need the Microsoft Visual C++ compiler to build the wheel. – Malik Brahimi Feb 11 '15 at 17:43
  • OK, thanks. I formatted my hard drive recently, and I lost all those utilities I always took for granted :/ – Konrad Feb 11 '15 at 17:46
  • 1
    @MalikBrahimi: You shouldn't need a compiler to *install* the wheel. – BrenBarn Feb 11 '15 at 17:46
  • @BrenBarn but I need a compiler to run/use the wheel? – Konrad Feb 11 '15 at 17:56
  • 1
    @KonradKapp: No, you shouldn't need a compiler to use it at all. You need a compiler to *create* the wheel file, but that's not something an end user would normally be doing. (You would only be creating a wheel file if you're the one writing/distributing the library.) – BrenBarn Feb 11 '15 at 18:00

2 Answers2

13

The "cp26" in that filename means "CPython 2.6". If you're using Python 3.4 you'll need a file that has "cp34" in the filename.

BrenBarn
  • 242,874
  • 37
  • 412
  • 384
0

Try using the installer from here.

Malik Brahimi
  • 16,341
  • 7
  • 39
  • 70
  • Alas, it says that I need Python 3.4 installed, and that it did not find it in the registry, but I am 100% certain that it installed correctly since I am using it, and Windows also lists it in my list of programs in the control panel – Konrad Feb 11 '15 at 17:45
  • If it's not in the registry, then you've clearly done something wrong. I'd try repairing your installation. – Malik Brahimi Feb 11 '15 at 17:48