When packaging a python project, an error message is reported: error: invalid command ‘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:
-
Re-upgrade the versions of whell and setuptools
pip install wheel pip install --upgrade setuptools
That’s it, the packaging is successful