Cannot install numpy from wheel format

*爱你&永不变心* 提交于 2019-11-26 13:00:50

Short answer: rename the file to numpy-1.9.1%2Bmkl-cp34-none-win32.whl to install it.

You can check what tags your pip tool accepts for installation by running:

import pip; print(pip.pep425tags.get_supported())

In this case pip is incorrectly detecting your operating system to be 32-bits and the file you're trying to install was win_amd64 in its filename.

If you rename the file to numpy-1.9.1%2Bmkl-cp34-none-win32.whl (which now contains the tags that are considered supported) then you can install the package. It's a trick because the file is still built for 64-bits but this allows you to install the package as intended.

Gaahbon

After several tests I think the problem is "win32" or "amd64" itself. I tried replacing those two with "any" and it worked.

I'm pretty much a newbie on these kind of installation/compilation thing, so excuse me if I misled anyone, just thought that if it worked for me, it might work for someone else.

In my case workaround to install gohlke packages on python (3.4.4 (AMD64)) was to change the "cp34m" part rather than "win*" parts above:

python -c "import pip; print(pip.pep425tags.get_supported())":

[('cp34', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), 
('cp34', 'none', 'any'), ...

ls -ld *:

matplotlib-2.0.0b3-cp34-cp34m-win_amd64.whl
numpy-1.11.1+mkl-cp34-cp34m-win_amd64.whl
pandas-0.18.1-cp34-cp34m-win_amd64.whl

Change above names to:

matplotlib-2.0.0b3-cp34-none-win_amd64.whl
numpy-1.11.1+mkl-cp34-none-win_amd64.whl
pandas-0.18.1-cp34-none-win_amd64.whl

eg, pip install matplotlib-2.0.0b3-cp34-none-win_amd64.whl

Processing ...
...Successfully installed matplotlib-2.0.0b3

To add to the list of other possible solutions, I had to upgrade pip itself. The latest binary from Gholke's site had the "cp27m" tag, which didn't show up when I checked the pip tags using:

import pip; print(pip.pep425tags.get_supported())

After I upgraded pip, the wheel didn't work but just doing a regular pip install numpy worked

The current Winpython Package Manager need a 2-characters fix to accept to recognize the new numpy+mkl 'wheel'. https://github.com/stonebig/winpython/commit/5e13230609a2e9f4d66d98c3776207ce4b4dd050

As a workaround, uninstall numpy package: pip uninstall numpy then install it again from cache: pip install numpy I had the same problem with several packages after upgrade from 3.4.1 to 3.4.2.

prku9595

Navigate to the directory where your 'pip.py' sits and then type following on win command '..\python.exe pip.py install name_of_package.whl'. This should work.

I had the same problem tried to work out with the suggested solutions. I changed win64 to win32 and it didn't work as well. But then I changed the name to original and this time it worked! The only extra thing I did was to go offline.that's so strange.

If you have, say, Python 3.4 installed, make sure to install the -cp34- version of the wheel and not -cp35-.

This has nothing to do with your operating system. Uninstall Python 32bit and install Python 64bit rather or alternatively find a 32bit wheel file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!