Linux has come a long way from being all terminal and commands. Linux distros these days come complete with proper GUIs and even App stores. However, that doesn’t make them immune to random bugs and glitches that you might run into when installing software or doing just about anything.
In this article, we’re talking about the “invalid command ‘bdlist_wheel'” error in Linux and giving you five solutions for the problem.
Also read: How does import work in Python?
Updating Linux is one the simplest and easiest ways of resolving just about any package related problem. You have to run the following command in a terminal window.
sudo apt-get update && sudo apt-get upgrade
Now try running Wheel setup again.
Update Python and Pip
Python and its package manager Pip both get frequent updates. Using an older version can lead to problems when installing external packages like Wheel.
While updating Python is as simple as running the command in the fix mentioned above, you can update pip by typing the following command in a terminal.
pip install upgrade
bdlist_wheel is a part of the Python Wheel library. Installing Wheel will also make the command available. You can install Wheel or any other Python library using pip.
pip install wheel
Now try running the command again, and it should run just fine.
python setup.py bdist_wheel
Install Python-dev packages
If installing Wheel didn’t do the trick, you might have to install the entire Python-dev package. Open a terminal and enter the following commands one at a time.
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
The bdist_wheel package should run fine now.
Manually enable Wheel installation
If you’ve installed Wheel using pip successfully, but the installation isn’t working, try adding the following snippet to your setup.py file for bdist_wheel.
setup( ... setup_requires=['wheel'] )
Make sure you install Wheel before adding this line.
Someone who writes/edits/shoots/hosts all things tech and when he’s not, streams himself racing virtual cars. You can reach out to Yadullah at [email protected], or follow him on Instagram or Twitter.