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
3
votes
1 answer

How do I know why a wheel is not supported on a platform?

I'm trying to install Cairo (a 2D graphics library). I've not used any .whl before (at least not manually) and I don't understand the error message I'm getting. I downloaded pycairo-1.18.2-cp38-cp38-win32.whl and tried to pip3 install it but I get…
jka
  • 337
  • 5
  • 15
3
votes
1 answer

Is there a MIME type for Python wheels (.whl)?

Is there a (de facto) standard MIME type to use for Python wheel packages? I couldn't see any in PEP 427. I suppose application/zip could be an option, but that seems misleading to me.
OrangeDog
  • 36,653
  • 12
  • 122
  • 207
3
votes
1 answer

How to pipenv install with binaries (not from source) from PyPI?

Is there a way to force pipenv install to use pre-built binaries from PyPI? I have a pipenv environment with scipy and numpy, and currently pipenv install is trying to install these libraries from source. I can't, because I don't have a fortran…
william_grisaitis
  • 5,170
  • 3
  • 33
  • 40
3
votes
1 answer

Prevent pip from caching a package

Is there a way to tell pip never to create a wheel cache of my package? Background I wrote a package for in-house use that sets up some symbolic links when installed using cmdclass in the setup.py. These post-install and post-develop triggers run…
jpyams
  • 4,030
  • 9
  • 41
  • 66
3
votes
1 answer

Add a virtual namespace for a Python package

I have a python package with the following directory structure: my_package/ my_subpackage/ __init__.py my_module.py __init__.py setup.py When I generate the Python wheel and pip install it, I am not going to have the…
Blackecho
  • 1,226
  • 5
  • 18
  • 26
3
votes
0 answers

How can I specific the operating system tag in my setup.py

I want to distribute my python package, so I use setup.py and bdist_wheel. I am able to specific package name and version, but the filename generated is like package_name-0.0.2-py3-none-any.whl. I haven't figured out how to specify the none and any…
Locke
  • 31
  • 3
3
votes
1 answer

how to install .whl that is not a supported wheel on this platform? only file available

I'm currently working with some IMU sensors, and the manufacturer provided a wheel file to manage sensor data from python. but I am getting the following message whenever I try to install it using pip: pip3 install…
3
votes
2 answers

How do I build a py2 wheel package, when setup.py runs with a Python version 3 interpreter?

I have a package that is supposed to be Python version 2 only but needs to be build running a version 3 interpreter. The setup.py of this package looks something like hits: from setuptools import setup setup( python_requires="<3.0, >=2.7.5", …
JCGB
  • 513
  • 2
  • 15
3
votes
0 answers

rebuilding the opencv-python wheel installer

I am using the opencv-python project here. What I would like to do is recreate the wheel file again. So what I did was something like: python setup.py bdist_wheel This creates a dist directory and adds the wheel file there which I then take and try…
Luca
  • 10,458
  • 24
  • 107
  • 234
3
votes
1 answer

Installing Flask project can't open setup.py

I am following the Deploy to Production tutorial from Flask. I am required to run python setup.py bdist_wheel to build a wheel build distribution file. But that command gives this error: python: can't open file 'setup.py': [Errno 2] No such file or…
3
votes
5 answers

"failed building wheel for twisted" in ubuntu

When I run "pip install twisted" it shows "failed building wheel for twisted" How can I install "twisted" outside the virtualenv ? I'm using ubuntu 17.04 and Wheel version 0.30.0
user7418129
  • 1,074
  • 14
  • 18
3
votes
0 answers

What does Failed building wheel for pynacl mean?

Sometimes when installing requirements associated with my python project, I get "Failed building wheel for cryptography" or "Failed building wheel for pynacl". Then I get "Running setup.py bdist_wheel for cryptography" What is happening here? Is it…
Alan Nelson
  • 1,129
  • 2
  • 11
  • 27
3
votes
1 answer

The TensorFlow library wasn't compiled to use AVX - AVX2

I'm new to Tensorflow. I am using a 64 bit version of Windows 10 and I would like to install Tensorflow for the CPU. I don't remember the exact steps that I followed to install it, however when I checked for the installation using: import…
Sorin Moruz
  • 31
  • 1
  • 2
3
votes
1 answer

Warning: no files found matching when I make a building wheel (Tensorflow)

When I make a building wheel, I get these warnings. Are these ignorable or any idea about these warnings? warning: no files found matching '*.dll' under directory '*' warning: no files found matching '*.lib' under directory '*' warning: no files…
3
votes
4 answers

How to install TensorFlow on Raspberry Pi 2

I'm trying to install TensorFlow on a Raspberry Pi 2 with Raspian Lite OS installed on and a 8 Gb SD card. I'm using Python version 2.7.9 and I'm trying to install TensorFlow for it. I previously searched and tried to solve the problem by me but…