gpt4 book ai didi

python - 错误 : No Commands supplied when trying to install pyglet

转载 作者:太空狗 更新时间:2023-10-29 17:53:06 29 4
gpt4 key购买 nike

我已经下载了 pyglet,但是当我运行“setup.py”,它只是在命令行:

Traceback (most recent call last):

File "C:\PythonX\Include\pyglet\pyglet-1.1.4\setup.py", line 285, in

setup(**setup_info)

File "C:\Python27\lib\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

如何修复此错误并安装 pyglet?

最佳答案

如果您刚刚执行了 python setup.py,您会得到这个 - 您需要键入 python setup.py build,然后键入 python setup.py安装

就像你在 Windows 上一样;即使是上述命令也可能无法正常工作。在这种情况下,您可以 download the Windows installer version这会将库安装到您的默认系统 Python。

关于python - 错误 : No Commands supplied when trying to install pyglet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19672690/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com