Hello Guys, How are you all? Hope You all Are Fine. My setup.py builds fails with this error: invalid command ‘bdist_wheel’ in python. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How error: invalid command ‘bdist_wheel’ Error Occurs ?
My setup.py builds fails with this error.
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'
How To Solve error: invalid command ‘bdist_wheel’ Error ?
How To Solve error: invalid command ‘bdist_wheel’ Error ?
To Solve error: invalid command ‘bdist_wheel’ Error You just need to install wheel package to resolve this error. Just use below command pip install wheel Then run this command python setup.py bdist_wheel.
error: invalid command ‘bdist_wheel’
To Solve error: invalid command ‘bdist_wheel’ Error You just need to install wheel package to resolve this error. Just use below command pip install wheel Then run this command python setup.py bdist_wheel.
Solution 1: Install wheel package
You just need to install wheel package to resolve this error. Just use below command.
pip install wheel
Then run this command.
python setup.py bdist_wheel
Now Your error must be solved.
Solution 2: Use this commands
You need to execute all below command if you are using ubuntu.
sudo apt-get install gcc libpq-dev -y
sudo apt-get install python-dev python-pip -y
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel -y
pip3 install wheel
Solution 3: add this line
First of all you need to install wheel package, Just use this command.
pip install wheel
Now, Also add this line in your setup.py
setup(
...
setup_requires=['wheel']
)
save yourself a pip install command
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
Jeedom Atlas BLEA: Failed building wheel for bluepy
Solution 2 did do it, thanks!