为什么我不能在python中创建轮子? [英] Why can I not create a wheel in python?

查看:62
本文介绍了为什么我不能在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆