Hissing Cockroach
Hissing Cockroach

Reputation: 129

Error: No Commands supplied when trying to install pyglet

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?

Upvotes: 13

Views: 58464

Answers (4)

Saurabh
Saurabh

Reputation: 1

Try this if trying on Windows7: Add environment variable in windows Windows+Pause > Advanced Sys Settings > Environment Variables Add New under system variables: Variable: Python34 Value: c:\Python34\python.py (or whereever u have installed Python)

then run using cmd: c:\Python34>python setup_bs4.py install (setup_bs4.py-> is BS4 setup file copied here)

and done... :) Hope it helps.

Upvotes: 0

Kindson Munonye Kany
Kindson Munonye Kany

Reputation: 74

I had the same problem. It worked fine when i installed on my desktop but when i wanted to install on my laptop it gave me the error message. Solution: Remove Python installation and reinstall again then proceed with setup of django. * First run the command to build: setup.py build * then run the command to install: setup.py install

This would solve your problem. But if it persists, get the msi installer

Upvotes: 0

Reuben Tanner
Reuben Tanner

Reputation: 5565

Just checked the pyglet website, there is an msi installer found on their main page:

http://pyglet.googlecode.com/files/pyglet-1.1.4.msi

You'll also need to install a recent version of python

Here's the 64 bit installer:

http://www.python.org/ftp/python/3.3.2/python-3.3.2.amd64.msi

and the 32 bit installer:

http://www.python.org/ftp/python/3.3.2/python-3.3.2.msi

Upvotes: 0

Burhan Khalid
Burhan Khalid

Reputation: 174624

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.

Upvotes: 42

Related Questions