我在Mac上运行pgu setup.py安装文件时遇到问题。我在IDLE中运行文件时得到的错误是:
Traceback (most recent call last):
File "/Developer/Python/pgu-0.18/setup.py", line 72, in <module>
main()
File "/Developer/Python/pgu-0.18/setup.py", line 69, in main
setup(**setup_args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 140, in setup
raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
SystemExit: 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: no commands supplied
我无法解释错误的含义。感谢。
我现在意识到我应该跑:
python setup.py install
但是,我在Mac上运行。在终端中运行该脚本会出现无法找到文件的错误。
答案 0 :(得分:0)
svn checkout http://pgu.googlecode.com/svn/trunk/ pgu
cd pgu
**python setup.py install**