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

Python3 out of source build

What I want Put all build output generated (build, dist, my_package.egg_info, etc) by python setup.py into a specific directory. Project structure awesome_pkg/ __init__.py mod.py my_fancy_app/ __init__.py …
St.Antario
  • 26,175
  • 41
  • 130
  • 318
4
votes
3 answers

ModuleNotFoundError: No module named 'wheel' during pythonnet installation on Python3.8

I am installing pythonnet using pip install pythonnet in python 3.8. I am running into this ModuleNotFoundError: No module named 'wheel' error. I did some research and I could not find a fix for this. Is there a way to fix this issue? Below is the…
LearningEveryday
  • 207
  • 2
  • 5
  • 14
4
votes
0 answers

Python wheel generation for py35 and py36 rather than generic py3

With both python 3.6 and 3.7, the command python setup.py bdist_wheel --plat-name=win_amd64 generates wheels for windows with the same name mypackage-0.8.0-py3-none-win_amd64. Is it possible to get python wheels for python 3.6 and 3.7, with the…
Imran
  • 642
  • 6
  • 25
4
votes
0 answers

Cannot install mayavi/vtk with pip3 install due "Failed building wheel for mayavi" but install works on virtualenv

When I try to install mayavi normally with pip3 install mayavi it gives the error ERRROR: Failed building wheel for mayavi and does not install. Strangely, if I create the virtual environment with python3 -m venv venv get into the virtualenv then…
John Doenut
  • 185
  • 3
  • 11
4
votes
1 answer

How to package all my library dependencies in wheel file?

I have one custom library/package (say my_utils) which has some library dependencies such as pandas, numpy, boto, etc. I have created wheel (my_utils.whl) of the same but it doesn't include the dependencies I have mentioned above. So when I install…
Darshan
  • 352
  • 8
  • 24
4
votes
1 answer

How to force pip install --editable to create wheel cache instead of egg?

When I do the following, with verbose flag, pip install -e file:////path/to/setupdir I see that it is running setup.py develop underneath and ends up creating .egg instead of .whl How to force pip creation of wheel instead? PS: I know that this…
GuSuku
  • 1,371
  • 1
  • 14
  • 30
4
votes
0 answers

Why pipenv is not using its wheel cache?

Whenever I install a new package (without using the --skip-lock option), pipenv downloads and (in case of non-binary dependencies) compiles all the packages from the scratch, even though the wheels are already cached in ~/.cache/pipenv. This makes…
Ali Alavi
  • 2,367
  • 2
  • 18
  • 22
4
votes
2 answers

Failed building wheel for numpy pandas

I'm on Centos and I'm trying to install pandas but I get the following error: sudo pip3 install pandas ~ Collecting pandas Requirement already satisfied (use --upgrade…
user10096621
  • 225
  • 2
  • 4
  • 16
4
votes
1 answer

Pip installation of .whl file only generates *.dist-info folder

I have an application that I am trying to build and install as system-wide executable. The odd thing is that the build is fine, but when I call: python3.5 -m pip install --upgrade some-name.whl All is successful, the executable is system-wide…
AlexK
  • 1,380
  • 10
  • 17
4
votes
0 answers

Python libraries interdependency resolution issue

I have the following section in my setup.py for mymainapp: install_requires=[ 'myapp1==0.2.0', 'myapp2==0.6.0', ... ] Here are the corresponding install_requires sections for those two app/dependencies: myapp1…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
4
votes
1 answer

Pip install and platform specific wheels

How does pip install select wheels to install? Say I've built multiple wheels for different platforms, and upload to PyPI does pip install automatically install the correct wheel that matches the platform? What happens if I've built a…
James Lin
  • 25,028
  • 36
  • 133
  • 233
4
votes
2 answers

Python wheel packages Linux vs windows

Can one use the same python package (wheel file) for Linux , windows etc.? I am asking this as some packages include not only python files but EXEs as well, which I assume are python code turned into exe (at least with pip.exe and Django admin…
G.Bar
  • 95
  • 1
  • 8
4
votes
2 answers

Docker: no such option: --use-wheel

I'm trying to use Docker to create a dependency package for AWS Lambda using this repository, but whenever I try to run the build.sh file, I end up with the message: no such option: --use-wheel Then when I try to use pip install wheel (outside of…
Spencer Goff
  • 1,036
  • 3
  • 14
  • 23
4
votes
2 answers

How to have pip recurisvely search directories for packages and dependencies?

Is pip capable of recursively searching through a file system path and installing a package and its dependencies? For example, given the following file structure (files not shown) pip install packageA -f C:\packages\ does not…
supertommy
  • 351
  • 3
  • 11
4
votes
0 answers

python: converting an egg-info directory to dist-info

I am working on an existing python application inside of a virtualenv environment. It is already set up to use wheel within its deployment. I have added another module which my application now needs, and this module only exists in egg format. It is…
HippoMan
  • 2,119
  • 2
  • 25
  • 48