Why can I not create a wheel in python?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping
--
Chapters
00:00 Question
00:54 Accepted answer (Score 311)
01:15 Answer 2 (Score 169)
01:41 Answer 3 (Score 39)
01:59 Answer 4 (Score 14)
02:18 Thank you
--
Full question
https://stackoverflow.com/questions/2666...
Question links:
https://gist.github.com/cloudformdesign/...
Accepted answer links:
[wheel]: https://pypi.python.org/pypi/wheel
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #pip #setuptools #pythonwheel
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping
--
Chapters
00:00 Question
00:54 Accepted answer (Score 311)
01:15 Answer 2 (Score 169)
01:41 Answer 3 (Score 39)
01:59 Answer 4 (Score 14)
02:18 Thank you
--
Full question
https://stackoverflow.com/questions/2666...
Question links:
https://gist.github.com/cloudformdesign/...
Accepted answer links:
[wheel]: https://pypi.python.org/pypi/wheel
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #pip #setuptools #pythonwheel
#avk47
ACCEPTED ANSWER
Score 311
Install the wheel package first:
pip install wheel
The documentation isn't overly clear on this, but "the wheel project provides a bdist_wheel command for setuptools" actually means "the wheel package...".
ANSWER 2
Score 170
I also ran into the error message invalid command 'bdist_wheel'
It turns out the package setup.py used distutils rather than setuptools. Changing it as follows enabled me to build the wheel.
#from distutils.core import setup
from setuptools import setup
ANSWER 3
Score 39
Update your setuptools, too.
pip install setuptools --upgrade
If that fails too, you could try with additional --force flag.
ANSWER 4
Score 15
I also ran into this all of a sudden, after it had previously worked, and it was because I was inside a virtualenv, and wheel wasn’t installed in the virtualenv.