天天看点

error: invalid command ‘bdist_wheel‘

在安装fate时出现一下的一个错误。

Building wheels for collected packages: apsw, gmpy2, peewee, pyspark, coverage, sklearn2pmml, crcmod, avro, future, thrift, pure-sasl
  Building wheel for apsw (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/ubuntu/fate/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j6lghbye/apsw/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j6lghbye/apsw/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-jfdnl62i
       cwd: /tmp/pip-install-j6lghbye/apsw/
  Complete output (8 lines):
  /home/ubuntu/fate/lib/python3.8/site-packages/setuptools/dist.py:473: UserWarning: Normalizing '3.9.2-r1' to '3.9.2.post1'
    warnings.warn(
  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'
  ----------------------------------------
  ERROR: Failed building wheel for apsw
           

造成这个错误的原因应该是没有安装wheel。

解决办法:安装wheel

pip3 install wheel