我已經竭盡所能在這個非常相關的問題: Why can I not create a wheel in python?不能建立輪 - 錯誤:無效的命令 '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'
語境:
$ pip --version
pip 8.1.1 from /home/bdillman/proj/fashion/lib/python3.5/site-packages (python 3.5)
$ python -c "import setuptools; print(setuptools.__version__)"
18.2
$ python --version
Python 3.5.1
$ which python
/home/bdillman/workspace/fashion/bin/python
$ pip list
Mako (1.0.4)
MarkupSafe (0.23)
peewee (2.8.0)
pip (8.1.1)
PyYAML (3.11)
setuptools (21.0.0)
wheel (0.29.0)
因此,它看起來像一切安裝和版本看起來不錯(我認爲)。任何人都有想法來檢查以進一步診斷?
具體的命令是:
$ python setup.py bdist_wheel
我也試過
$ sudo python setup.py bdist_wheel
我也做pip install --upgrade setuptools
和pip install --upgrade wheel
,並得知他們的最新。
你用來建立輪子文件的確切命令是什麼? – linusg
啊,也許更新pip,wheel和setuptools('pip install --upgrade setuptools'等)! – linusg
添加了問題的信息。我嘗試了鏈接問題中列出的所有內容,但沒有成功。它一定是別的東西。 –