我已安装了这些软件包,但遇到了traceback
,其中显示了error: invalid command 'bdist_wheel'
。
我引用了Why can I not create a wheel in python?
wheel,setuptools --force, - upgrade pip全部更新并安装。
所以我很困惑,为什么它仍然是错误的。
[192.168.15.xxx] out: Running setup.py bdist_wheel for bokeh ... [?25lerror
[192.168.15.xxx] out: Complete output from command /home/user/project/weather_station/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-25c2v483/bokeh/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpn5f73qcnpip-wheel- --python-tag cp35:
[192.168.15.xxx] out:
[192.168.15.xxx] out:
[192.168.15.xxx] out: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
[192.168.15.xxx] out: or: -c --help [cmd1 cmd2 ...]
[192.168.15.xxx] out: or: -c --help-commands
[192.168.15.xxx] out: or: -c cmd --help
[192.168.15.xxx] out:
[192.168.15.] out: error: invalid command 'bdist_wheel'
答案 0 :(得分:0)
以防万一,请确保您在setupy.py中的导入是正确的:
from setuptools import setup
我在使用pycharm自动创建的setup.py时遇到了相同的错误,它是根据以下 WRONG 导入语句创建的:
from distutils.core import setup
因此请确保您正在导入正确的setup
模块。