Error: invalid command ‘bdist_wheel’

This is a common problem that I have seen while building a wheel in python. Mostly this is the case because wheel is not a standard python library distributed with python.

Problem

(django) (base) C:\Users\sukhbinder\Desktop\PROJECTS\exp>python setup.py build bdist_wheel
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_wheel'

Solution

(django) (base) C:\Users\sukhbinder\Desktop\PROJECTS\exp>pip install wheel
Collecting wheel
  Using cached https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl
Installing collected packages: wheel
Successfully installed wheel-0.36.2

That’s it. Install wheel from pypi.

Pair this with these posts.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s