pip – Why can I not create a wheel in python?

pip – Why can I not create a wheel in python?

Install the wheel package first:

pip install wheel

The documentation isnt overly clear on this, but the wheel project provides a bdist_wheel command for setuptools actually means the wheel package.

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

pip – Why can I not create a wheel in python?

Update your setuptools, too.

pip install setuptools --upgrade

If that fails too, you could try with additional --force flag.

Leave a Reply

Your email address will not be published. Required fields are marked *