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

"Getting requirements to build wheel ... error" when trying install --editable

I am running: pip install --editable . and get the following: Obtaining file:///content/nlp_tokenization_project Installing build dependencies ... done Getting requirements to build wheel ... error ERROR: Command errored out with exit status 1:…
Danielle H
  • 79
  • 1
  • 1
  • 2
7
votes
1 answer

setuptools, know in advance the wheel filename of a native library

Is there an easy way to know the filename of a Python wheel before running the setup script? I'm trying to generate a Bazel rule that builds a .whl for each Python version installed in the machine, the library contains native code so it needs to be…
nsubiron
  • 913
  • 4
  • 15
7
votes
1 answer

Python wheel: "ModuleNotFoundError" after installing package

OS: Windows 7 Python: 3.6 I'm trying to create and installing a python wheel package. The building works fine but when i import the module into project after installing it, i get a "ModuleNotFound" error. My project has the following…
NoNAmE
  • 73
  • 1
  • 4
7
votes
1 answer

Conda Skeleton Fails

I published a sample python package on Pypi using wheel. I would like to publish the package on my Conda channel using this tutorial. However when I run: conda skeleton pypi rutgerhofstepythonpackage I get the following error: Warning, the…
Rutger Hofste
  • 4,073
  • 3
  • 33
  • 44
7
votes
2 answers

How to install a wheel-style package using setup.py

Is there a way, using setup.py, to install a python package as a wheel/pip-style package (i.e. dist-info) instead of the egg installation that setup.py does by default (i.e. egg-info)? For example, if I have a python package with a setup.py script…
Brendan Abel
  • 35,343
  • 14
  • 88
  • 118
7
votes
1 answer

What is the meaning of 'cp3xm' and 'cp2xm' in the name of Python wheels?

To my knowledge, the naming rules of python wheel is package_version-related_python_version-none-32bits_or_64bits.whl For example, numpy‑1.11.2+mkl‑cp35‑none‑win_amd64.whl is numpy of version 1.11.2 for Python3.5 running in windows 64 bits…
zhi lim
  • 109
  • 5
7
votes
2 answers

Python package wheel PKG-INFO name

I followed Packaging and Distributing Projects to create a Python package to upload to Artifactory. In my setup.py, I specified name='foo_bar' and then I ran python setup.py bdist_wheel. I noticed that in egg-info\PKG-INFO, name got changed to…
Bob
  • 8,424
  • 17
  • 72
  • 110
7
votes
1 answer

Force Python package setup.py bdist_wheel to include binaries in subdirectories

I have a Python package that includes bin_win32, bin_win64, bin_osx, bin_lnx32, and bin_lnx64 subdirectories with binaries for the appropriate platforms, which I call through the Python file steamcloud.py. When I run python setup.py bdist_wheel…
Carlos Liam
  • 305
  • 2
  • 10
7
votes
1 answer

pip wheel conditional dependencies

While working on a virtualenv for developing a python package, I use to issue a "pip wheel ." to generate all wheel archives needed for the package. I start using conditional dependencies by listing them in the setuptools extras_require parameter.…
yorjo
  • 1,699
  • 3
  • 12
  • 14
7
votes
2 answers

pip install error: "Unknown archive format: .whl"

I'm new to virtualenv (on windows). I'm trying to use pip (1.5) install a local wheel file, but it is failing. The command is: pip install --no-index -f C:/Users//Download openpyxl In the pip.log, I can see where it finds the correct file,…
Brett Stottlemyer
  • 2,734
  • 4
  • 26
  • 38
6
votes
4 answers

How to create platform-specific Python wheel with build tool?

build (https://github.com/pypa/build) is a great tool to create wheels. However, I could not find a way to create platform-specific wheels that I can do with python setup.py --plat-name=linux_x86_64. I have tried these approaches: Add setup.cfg…
Tibor Takács
  • 3,535
  • 1
  • 20
  • 23
6
votes
1 answer

How to publish pip wheels using github actions

Maybe a bit of a broad question, but I think this is relevant for any maintainer of python packages that uses github and could reduce their workload significantly, so hopefully the powers that be will let it stand. Essentially, it seems to me that…
George
  • 3,521
  • 4
  • 30
  • 75
6
votes
1 answer

Why is the wheel package not installed by default in Python 3.6?

Here is my problem: I need to distribute Python packages that I created. I would like to create wheels, as this is now the preferred way of distributing Python packages. On my machine: no problem. On my client server, however, I do not have control…
Cyrille99
  • 109
  • 6
6
votes
3 answers

How to install pre-built Pillow wheel with libraqm DLLs on Windows?

I tried using the pre-built wheels for Pillow and corresponding libraqm DLL from here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow But the following returns False: from PIL import features features.check('raqm') Am I missing…
Gokul NC
  • 1,111
  • 4
  • 17
  • 39
6
votes
1 answer

Difference between manylinux1 vs manylinux2020 wheel files in PIP Installer

I am facing a weird issue in Python, The Issue is cryptography-2.9.2-cp35-abi3-manylinux2010_x86_64.whl is not working on the SLES OS. I have a CI/CD added to my repo and when I am downloading the packages from requirements.txt into local folder…
Sasi
  • 140
  • 1
  • 8