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
24
votes
5 answers

Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects

I am trying to install the ernie and tokenizers on Windows, but for both cases it is showing the following error: ERROR: Command errored out with exit status 1: command: 'c:\users\my pc\appdata\local\programs\python\python39\python.exe'…
Jaswanth Ch
  • 249
  • 1
  • 2
  • 6
24
votes
3 answers

How do you get the filename of a Python wheel when running setup.py?

I have a build process that creates a Python wheel using the following command: python setup.py bdist_wheel The build process can be run on many platforms (Windows, Linux, py2, py3 etc.) and I'd like to keep the default output names (e.g.…
geographika
  • 6,458
  • 4
  • 38
  • 56
24
votes
2 answers

Python wheel force ABI to "none"

I would think this is an easy question, but I haven't found an answer yet, so I'm posting here. I have a Python 3 app, that I package into a platform wheel. I have the setup.py and everything works as expected. The only thing I can't figure out is…
Brian Madden
  • 951
  • 1
  • 8
  • 21
24
votes
3 answers

.whl is not a valid wheel filename, storing debug log for failure in C:\

I am having trouble installing a wheel file via pip. I open my command prompt write the following in the prompt C:/Python34/Scripts/pip install C:/Users/Hamsa/Downloads/pygame.whl Then I get this message pygame.whl is not a valid wheel filename.…
Kimbly North
  • 365
  • 1
  • 3
  • 10
23
votes
2 answers

How to download cross-platform wheels via pip?

I'm accustomed to pre-downloading packages using Pip, then copying them over to a target machine for deployment. With the newly introduced Python Wheels, I'm forced to "pip ... --no-use-wheel", as some of the downloaded packages are platform…
mixman
  • 390
  • 1
  • 3
  • 7
21
votes
10 answers

module 'pip' has no attribute 'pep425tags'

When I am trying to install .whl with pip it said: ... is not a supported wheel on this platform to solve this problem, I searched the Internet and it said I can input this into repl import pip; print(pip.pep425tags.get_supported()) with this I…
Alina
  • 311
  • 1
  • 2
  • 5
20
votes
1 answer

pip install psycopg2 - error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I get the following error when trying to install psycopg2: (venv) root@scw-determined-panini:/app# pip install psycopg2 Collecting psycopg2 Using cached…
Nikk
  • 7,384
  • 8
  • 44
  • 90
20
votes
3 answers

Python Poetry: how to specify platform-specific dependency alternatives?

Some background: The project I'm working on uses python-ldap library. Since we are a mixed-OS development team (some use Linux, some macOS and some Windows), I'm trying to make the project build on all environments. Unfortunately, python-ldap is…
Igor Brejc
  • 18,714
  • 13
  • 76
  • 95
20
votes
5 answers

Can't build wheel - error: invalid command 'bdist_wheel'

I've tried everything in this very related question: Why can I not create a wheel in python? But I still get: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py…
Captain Aporam
  • 315
  • 1
  • 4
  • 13
20
votes
2 answers

Post install script after installing a wheel

Using from setuptools.command.install import install, I can easily run a custom post-install script if I run python setup.py install. This is fairly trivial to do. Currently, the script does nothing but print some text but I want it to deal with…
Sardathrion - against SE abuse
  • 17,269
  • 27
  • 101
  • 156
20
votes
1 answer

Wheel is a reference to the other Python

PEP 427 describes the move to .whl files from .egg for Python packaging. In the comparisons section of the PEP, there is point 6: Wheel is a reference to the other Python. I don't understand this point, what are they trying to say?
wim
  • 338,267
  • 99
  • 616
  • 750
19
votes
3 answers

Should setuptools be in the setup_requires entry of setup.cfg files?

The importlib_resources backport for Python < 3.7 of the importlib.resources standard library module has the following section in the setup.cfg file: [options] python_requires = >=2.7,!=3.0,!=3.1,!=3.2,!=3.3 setup_requires = setuptools …
Géry Ogam
  • 6,336
  • 4
  • 38
  • 67
19
votes
2 answers

Easy_install cache downloaded files

Is there a way to configure easy_install to avoid having to download the files again when an installation fails?
Sam
  • 6,437
  • 6
  • 33
  • 41
19
votes
2 answers

Can I convert an egg to wheel?

I have an already built/downloaded Python egg and I would like to convert it to the wheel format documented in PEP 427. How can I do this?
Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366
18
votes
1 answer

How to interpret naming convention in PyPi package name

That's what can be found in lots of packages such as this one: https://pypi.python.org/pypi/pip pip-9.0.1-py2.py3-none-any.whl how to interpret this naming convention?
Ilia Sidorenko
  • 2,157
  • 3
  • 26
  • 30
1 2
3
58 59