Questions tagged [python-wheel]

​​​​​​​​​​​​​​​​​​​​A wheel is a ZIP-like archive format for Python packages with the .whl extension.

Wheels were introduced to Python with PEP 427 to simplify distribution installation. It replaces the egg format.

Useful Links:

  1. PEP 376 Database of Installed Python Distributions infrastructure Wheels are based on
  2. PEP 427 Introduction of the Wheel format
  3. Wheel package index
883 questions
1211
votes
19 answers

How do I install a Python package with a .whl file?

I'm having trouble installing a Python package on my Windows machine, and would like to install it with Christoph Gohlke's Window binaries. (Which, to my experience, alleviated much of the fuss for many other package installations). However, only…
e9t
  • 15,534
  • 5
  • 23
  • 25
241
votes
17 answers

What is the meaning of "Failed building wheel for X" in pip install?

This is a truly popular question here at SO, but none of the many answers I have looked at, clearly explain what this error really mean, and why it occurs. One source of confusion, is that when (for example) you do pip install pycparser, you first…
not2qubit
  • 14,531
  • 8
  • 95
  • 135
195
votes
8 answers

Why can I not create a wheel in python?

Here are the commands I am running: $ python setup.py bdist_wheel usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid…
vitiral
  • 8,446
  • 8
  • 29
  • 43
191
votes
30 answers

ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly

I'm trying to install scipy via pip on my 64 bit ARMV8 board. I have already installed openblas which is required by scipy. So, no issues with that. When i gave pip3 install scipy --trusted-host pypi.org --trusted-host files.pythonhosted.org , I got…
Sourabrt
  • 2,126
  • 2
  • 8
  • 22
180
votes
4 answers

Wheel file installation

How do I install a .whl file? I have the wheel library, but I don't know how to use it to install those files. I have the .whl file, but I don't know how to run it.
balloneij
  • 2,226
  • 2
  • 15
  • 17
101
votes
8 answers

How do you add additional files to a wheel?

How do control what files are included in a wheel? It appears MANIFEST.in isn't used by python setup.py bdist_wheel. UPDATE: I was wrong about the difference between installing from a source tarball vs a wheel. The source distribution includes…
jwhitlock
  • 4,572
  • 4
  • 39
  • 49
98
votes
3 answers

Build a wheel/egg and all dependencies for a python project

In order to stage python project within our corporation I need to make an installable distribution. This should include: An egg or whl for my project An egg or whl for every dependency of the project (optionally) produce a requirements.txt file…
Salim Fadhley
  • 6,975
  • 14
  • 46
  • 83
95
votes
1 answer

Could not build wheels since package wheel is not installed

I am having this problem with wheels: 'Could not build wheels for ..., since package 'wheel' is not installed.' with several packages and I have no idea what to do since - as you can see in the very end - I have installed the wheel package I am…
mikolajbe
  • 1,059
  • 1
  • 5
  • 5
88
votes
6 answers

How do I list the files inside a python wheel?

I'm poking around the various options to setup.py for including non-python files, and they're somewhat less than intuitive. I'd like to be able to check the package generated by bdist_wheel to see what's actually in it--not so much to make sure that…
Andrew
  • 4,058
  • 4
  • 25
  • 37
83
votes
3 answers

Latest 'pip' fails with "requires setuptools >= 0.8 for dist-info"

Using the recent (1.5) version of pip, I get an error when attempting to update several packages. For example, sudo pip install -U pytz results in failure with: Wheel installs require setuptools >= 0.8 for dist-info support. pip's wheel support…
orome
  • 45,163
  • 57
  • 202
  • 418
61
votes
15 answers

Tensorflow installation error: not a supported wheel on this platform

when I try to install TensorFlow by cloning from Git, I run into the error "no module named copyreg," so I tried installing using a virtualenv. However, I then run into this error: pip install…
Peter Qiu
  • 932
  • 2
  • 7
  • 13
58
votes
2 answers

Python packaging: wheels vs tarball (tar.gz)

The advantage of wheels over eggs is clear (see section why not egg? https://pypi.python.org/pypi/wheel). However, it is not entirely clear to me what is the advantage of using wheels over tar.gz. I might be missing something obvious like "they are…
zom-pro
  • 1,571
  • 2
  • 16
  • 32
58
votes
10 answers

Cannot install NumPy from a wheel format

I am trying to install NumPy from a wheel (.whl) file. I get the error: numpy-1.9.1%2Bmkl-cp34-none-win_amd64.whl is not a supported wheel on this platform. Details: Windows 8.1 pro x64, elevated command prompt Python 3.4.2 Package NumPy from…
lmsasu
  • 7,459
  • 18
  • 79
  • 113
44
votes
7 answers

List dependencies of Python wheel file

I have Python wheel file: psutil-5.4.5-cp26-none-linux_x86_64.whl How can I list the dependencies this wheel has?
guettli
  • 25,042
  • 81
  • 346
  • 663
42
votes
1 answer

How to fix `error: invalid command 'bdist_wheel'`?

I try to install watchman on Ubuntu 20.04.01: guettli@yoga15:~/tmp$ python3 -m venv pywatchman-test guettli@yoga15:~/tmp$ cd pywatchman-test guettli@yoga15:~/tmp/pywatchman-test$ . bin/activate (pywatchman-test)…
guettli
  • 25,042
  • 81
  • 346
  • 663
1
2 3
58 59