python - 为什么我不能在 python 中创建一个轮子?

这是我正在运行的命令:

$ python setup.py 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 1.5.6 from /usr/local/lib/python3.4/site-packages (python 3.4)

$ python -c "import setuptools; print(setuptools.__version__)"
2.1

$ python --version
Python 3.4.1

$ which python
/usr/local/bin/python

另外,我正在使用自制 python 运行 mac

这是我的 setup.py 脚本: https://gist.github.com/cloudformdesign/4791c46fe7cd52eb61cd

我快疯了——我不明白为什么这不起作用。

最佳答案

安装wheel package第一:

pip install wheel

文档对此并不太清楚,但“wheel 项目为 setuptools 提供 bdist_wheel 命令” 实际上意味着 “wheel .. .".

https://stackoverflow.com/questions/26664102/

相关文章:

python - 您需要安装 postgresql-server-dev-X.Y 来构建服务器端扩展

python - 如何使用 open with 语句打开文件

python - 如何打印字典的键?

linux - 从ssh注销后如何使程序继续运行?

linux - 使用 grep 搜索包含点的字符串

linux - 确定 Linux 二进制文件的直接共享对象依赖关系?

linux - 好的 Linux (Ubuntu) SVN 客户端

python - 在 Python 中写入 UTF-8 文件

python - super() 失败并出现错误 : TypeError "argument 1 m

python - 如何在 python-3.x 中使用字典格式化字符串?