I have downloaded pyglet, but when I run the "setup.py" thing, it just says this in the command line:
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
How do I fix this error and install pyglet?
If you just did python setup.py
, you'll get this - you need to type python setup.py build
followed by python setup.py install
.
As you are on Windows; even the above commands may not work correctly. In that case, you can download the Windows installer version which will install the library to your default system Python.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With