为什么我不能在 python 中创建一个轮子? [英] Why can I not create a wheel in python?
本文介绍了为什么我不能在 python 中创建一个轮子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我正在运行的命令:
Here are the commands I am running:
$ 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
Also, I am running a mac with homebrewed python
这是我的 setup.py 脚本:https://gist.github.com/cloudformdesign/4791c46fe7cd52eb61cd
Here is my setup.py script: https://gist.github.com/cloudformdesign/4791c46fe7cd52eb61cd
我快疯了——我不明白为什么这行不通.
I'm going absolutely crazy -- I can't figure out why this wouldn't be working.
推荐答案
安装 wheel
包 首先:
Install the wheel
package first:
pip install wheel
文档对此并不太清楚,但是wheel 项目为 setuptools 提供了 bdist_wheel 命令" 实际上意味着 wheel 包...".
The documentation isn't overly clear on this, but "the wheel project provides a bdist_wheel command for setuptools" actually means "the wheel package...".
这篇关于为什么我不能在 python 中创建一个轮子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文