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
17
votes
2 answers

Could not build wheels for pyaudio, since package 'wheel' is not installed

I tried to install pyaudio, but it returns an error like this: Could not build wheels for pyaudio, since package 'wheel' is not installed. How can I fix this?
Sih Jie
  • 241
  • 1
  • 3
  • 5
16
votes
1 answer

Build wheel for a package (like scipy) lacking dependency declaration

I think it doesn't make a difference here but I'm using Python 2.7. So the general part of my question is the following: I use a separate virtualenv for each of my projects. I don't have administrator access and I don't want to mess with…
Midnighter
  • 3,771
  • 2
  • 29
  • 43
15
votes
4 answers

How to exclude *.pyc and __pycache__ from python wheels?

What's the correct way to exclude files from a python wheel distribution package? Editing the MANIFEST.in does not have any effect and I can't find information about this detail.
nemesisdesign
  • 8,159
  • 12
  • 58
  • 97
14
votes
4 answers

AttributeError: module 'tensorflow' has no attribute 'compat' when loading tf.compat.v1.train.SessionRunHook

I can see that this question has been asked before here tensorflow-has-no-attribute-compat but the answer given was to Microsoft Visual C++ 2015-2019 Redistributable (x64) It did not work for the previous member it has not worked for me either. I…
Leo Torres
  • 673
  • 1
  • 6
  • 18
14
votes
2 answers

pip install wheel version from private github repo

I've packaged my private repo into a wheel. There are different versions of the wheel. Is it possible to install a specific wheel version of the repo using pip from the command line and via the requirements.txt file? This feature isn't mentioned in…
skeller88
  • 4,276
  • 1
  • 32
  • 34
14
votes
2 answers

Include run-time dependencies in Python wheels

I'd like to distribute a whole virtualenv, or a bunch of Python wheels of exact versions with their runtime dependencies, for example: pycurl pycurl.so libcurl.so libz.so libssl.so libcrypto.so libgssapi_krb5.so libkrb5.so libresolv.so I…
Dima Tisnek
  • 11,241
  • 4
  • 68
  • 120
13
votes
1 answer

sentencepiece library is not being installed in the system

While using pip install tf-models-official I found the following problem while the library is getting installed:- Collecting tf-models-official Using cached tf_models_official-2.8.0-py2.py3-none-any.whl (2.2 MB) Requirement already satisfied:…
13
votes
1 answer

Python: pip install wheel dependencies from a folder

I know that I can create a wheel by first writing a setup.py and then typing python setup.py bdist_wheel If my wheels depend only on packages in pypi I know that I can install them by doing: pip install mypkg.whl Question: if my wheels depend on…
vefejer
  • 153
  • 1
  • 1
  • 5
13
votes
9 answers

airflow initdb: undefined symbol: Py_GetArgcArgv

I followed the documentation to install Apache-airflow. https://airflow.apache.org/docs/stable/start.html When I execute airflow initdb, an error occurs every time. x-MacBook-Pro:~ x$ airflow initdb ...... import airflow.utils.dag_processing File…
changcui
  • 131
  • 1
  • 5
13
votes
2 answers

How to get egg or wheel file of pip-installed python package?

I have similar import error on Spark executors as described here, just with psycopg2: ImportError: No module named numpy on spark workers Here it says "Although pandas is too complex to distribute as a *.py file, you can create an egg for it and its…
Bunyk
  • 7,635
  • 8
  • 47
  • 79
13
votes
3 answers

'pip setup.py bdist_wheel' no longer builds forced non-pure wheels

I have a project that compiles with C extensions on Linux, but without them on Windows. When I first generated the wheel files on Windows with python setup.py bdist_wheel, they became universal, and I could not upload them to PyPI as these universal…
Anthon
  • 69,918
  • 32
  • 186
  • 246
12
votes
1 answer

How to build a universal wheel with pyproject.toml

This is the project directory structure . ├── meow.py └── pyproject.toml 0 directories, 2 files This is the meow.py: def main(): print("meow world") This is the pyproject.toml: [build-system] requires = ["setuptools"] build-backend =…
platypus
  • 1,128
  • 8
  • 15
12
votes
2 answers

As a pip install user, am I supposed to have wheel installed?

Consider the usual scenario - I want to create a virtual environment and install some packages. Say python3 -m venv venv source venv/bin/activate pip install databricks-cli During the installation, I get an error Building wheels for collected…
psarka
  • 1,562
  • 1
  • 13
  • 25
12
votes
2 answers

Download wheel from PyPi

How can I download a specific wheel from a package listed on PyPi? I'm assuming I would use wget or curl, but I'm not sure of which arguments to use.
BoltzmannBrain
  • 5,082
  • 11
  • 46
  • 79
12
votes
1 answer

Python Wheels on linux (how? and why?)

I know that wheels are binary version of a module uploaded on PyPI. with pip install On Windows: I get wheels downloaded and installed. On Ubuntu: I should get the source distribution of the package BUT in some cases I get wheels. On fedora: Tricky…
Szabolcs Dombi
  • 5,493
  • 3
  • 39
  • 71