Fix Python – Why can I not create a wheel in python?


Asked By – vitiral

Here are the commands I am running:

$ python bdist_wheel
usage: [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: --help [cmd1 cmd2 ...]
   or: --help-commands
   or: cmd --help

error: invalid command 'bdist_wheel'

$ pip --version
pip 1.5.6 from /usr/local/lib/python3.4/site-packages (python 3.4)

$ python -c "import setuptools; print(setuptools.__version__)"

$ python --version
Python 3.4.1

$ which python

Also, I am running a mac with homebrewed python

Here is my script:

I’m going absolutely crazy — I can’t figure out why this wouldn’t be working.

Now we will see solution for issue: Why can I not create a wheel in python?


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…”.

This question is answered By – Thomas Orozco

This answer is collected from stackoverflow and reviewed by FixPython community admins, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0