Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI? Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI? python python

Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?


Had to install the wheel package. Everything was up to date but still giving the error.

pip install wheel

then

python setup.py bdist_wheel 

Worked without issues.


Jan 2020

2 hours wasted.

On a AWS Ubuntu 18.04 new machine, below installations are required:

sudo apt-get install gcc libpq-dev -ysudo apt-get install python-dev  python-pip -ysudo apt-get install python3-dev python3-pip python3-venv python3-wheel -ypip3 install wheel

Especially the last line is must.
However before 3 lines might be required as prerequisites.

Hope that helps.


pip install wheel

worked for me, but you can also add this

setup(    ...    setup_requires=['wheel'])

to setup.py and save yourself a pip install command