Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Django:错误:无效命令';bdist#u wheel';_Python_Django - Fatal编程技术网

Python Django:错误:无效命令';bdist#u wheel';

Python Django:错误:无效命令';bdist#u wheel';,python,django,Python,Django,我已经安装了软件包,但遇到了回溯,它显示了错误:无效命令“bdist\u wheel” 我提到 控制盘,设置工具--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/proje

我已经安装了软件包,但遇到了
回溯
,它显示了
错误:无效命令“bdist\u wheel”

我提到

控制盘,设置工具--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'

以防万一,请确保您在setupy.py中的导入是正确的:

from setuptools import setup
我在pycharm自动创建的setup.py中遇到了相同的错误,它创建了以下错误的导入语句:

from distutils.core import setup

因此,请确保您正在导入正确的
设置
模块。

是否有解决此错误的方法???是否已安装
控制盘