我想从python yaml创建egg文件 http://pyyaml.org/wiki/PyYAML
我修改了setup.py以从setuptools导入设置(最后一行)
from distutils.command.build_ext import build_ext as _build_ext
from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm
from distutils.errors import DistutilsError, CompileError, LinkError, DistutilsPlatformError
from setuptools import setup
当我调用构建命令
时python setup.py bdist_egg
它给了我这个错误:
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_egg'
你知道怎么做吗?