[Solved] python setup.py bdist_wheel error handling method

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:

  1. Re-upgrade the versions of whell and setuptools

    pip install wheel
    pip install --upgrade setuptools
    

    That’s it, the packaging is successful