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

Installing numpy from wheel format: "...is not a supported wheel on this platform"

I realize a question that relates to this has already been asked at Cannot install numpy from wheel format , but the solution presented there does not work for me. I have asked on that thread too (by answering!) but I'm not getting any replies, so…
Konrad
  • 2,207
  • 4
  • 20
  • 31
5
votes
0 answers

How to build Python package with fortran extension

I've made a Python package that contains a fortran extension. When i run pip install -e . to test it locally works, but when I build the wheels and upload them to PyPI, and then pip install my_package this is what I get when I import…
Tito Diego
  • 47
  • 1
  • 6
5
votes
3 answers

Failed to Build Wheel For Opencv

I upgraded wheel, pip, and setuptools all to the latest version, with the following command. pip3.9 install --upgrade pip setuptools wheel When I try to install opencv pip3.9 install opencv-python, It gives an error. I tried to install an older…
James
  • 51
  • 1
  • 1
  • 3
5
votes
5 answers

Failing to install lxml using pip

I am attempting to use pip to install lxml. I have Windows 11 and Python version python-3.10.2-amd64. I am using Visual Studio Code (VSC) as well. I realized I needed lxml from this error message in my VSC terminal: Traceback (most recent call…
Bamasdrey
  • 51
  • 1
  • 1
  • 3
5
votes
0 answers

How do I code-sign an executable created by a python wheel?

I'm creating a python package with an executable as a wheel using setuptools. My simplified setup.py file looks like this: setup( name="mypackage", version="1.0.0", entry_points={"console_scripts": {"mypackage =…
Stephan
  • 650
  • 7
  • 16
5
votes
1 answer

Programmatically check if wheel is compatible with Python installation

Is it possible to programmatically check if a wheel (whl) is compatible with the chosen Python installation before attempting to install? I'm making an automated packages installer (packages needed for my Python project to work), and I need to only…
Edw590
  • 447
  • 1
  • 6
  • 23
5
votes
2 answers

how to install pyearth in google colab?

This used to work for me, but since two days now i am getting this issue: pip install sklearn-contrib-py-earth Collecting sklearn-contrib-py-earth Using cached…
saleha
  • 51
  • 1
  • 2
5
votes
1 answer

Why customer python package can not be imported?

I created my own python package named jjnsegutils and upload it to Pypi website. But after I successfully install it by pip install jjnsegutils, I still can not import it. Error shows: ModuleNotFoundError: No module named 'jjnsegutils'. Details…
Jingnan Jia
  • 1,108
  • 2
  • 12
  • 28
5
votes
1 answer

How do I call pyspark code with .whl file?

I have used poetry to create a wheel file. I am running following spark-submit command , but it is not working. I think I am missing something spark-submit --py-files /path/to/wheel Please note that I have referred to below as well, but did not get…
5
votes
1 answer

What is the point of built distributions for pure Python packages?

One can share Python as a source distribution (.tar.gz format) or as a built distribution (wheels format). As I understand it, the point of built distributions is: Save time: Compilation might be pretty time-consuming. We can do this once on the…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
5
votes
2 answers

Converting /someone/else's/ .tar.gz package to a .whl?

I'm faced with a Docker build process that's pretty slow, in part because of all the Python packages we're building and installing over and over. I'd very much like to speed it up. I've downloaded the packages from PyPI so I can get a good look at…
dstromberg
  • 6,954
  • 1
  • 26
  • 27
5
votes
3 answers

pypi: how to check if the package is using wheel

I want to write a script which goes through all the packages on pypi repository, to check whether they are using wheel or egg. I know that by the new standard, it is mandatory for all the packages to use wheel and not egg. I found this information…
R4444
  • 2,016
  • 2
  • 19
  • 30
5
votes
2 answers

How to get pip to tell me why it doesn't match PyPI binary wheels?

I'm building my own install of Python, then using pip to install some packages into it. I want to use the pre-built binary wheels for packages like Cryptography. Python 2.7.15 / 2.7.16 Pip 19.0.3 Setuptools 40.8.0 On GNU/Linux is just works: it…
MadScientist
  • 92,819
  • 9
  • 109
  • 136
5
votes
1 answer

How to include .whl files in zip for lambda function

Ok...I have spent a good amount of time trying to figure this out. The easiest way to include dependencies for python in lambda functions seems to be a download of the .whl file from pyPI…
5
votes
2 answers

pip install from a Google Cloud Storage bucket

I would like to install a Python package (my-package-1.0.0.tar.gz) from a Google Cloud Storage bucket. It works well with publicly available buckets (Allow Public Read access on a GCS bucket?) or with signed url…