Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: No Commands supplied when trying to install pyglet

Tags:

python

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?

like image 847
Hissing Cockroach Avatar asked Oct 30 '13 02:10

Hissing Cockroach


1 Answers

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.

like image 131
Burhan Khalid Avatar answered Oct 20 '22 15:10

Burhan Khalid