Error: no commands issued when trying to install the piglet

I downloaded pyglet, but when I run "setup.py", it just says it on the command line:

Traceback (last last call):

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 the configuration

 raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg 

SystemExit: use: 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 specified

How to fix this error and install pyglet?

+6
source share
4 answers

If you just did python setup.py , you get this - you need to enter python setup.py build and then python setup.py install .

How are you on Windows; even the above commands may not work correctly. In this case, you can download the version of Windows Installer , which will install the library into your Python system by default.

+27
source

Just checked the pyglet site, the MSI installer is installed on the main page:

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

You will also need to install the latest version of python

The 64-bit installer is installed here:

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

and 32-bit installer:

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

0
source

I had the same problem. It worked fine when I installed it on my desktop, but when I wanted to install it on my laptop, it gave me an error message. Solution: Uninstall Python and reinstall it, then go on to configure django. * First run the command to build: setup.py build * then run the command to install: setup.py install

This will solve your problem. But if it persists, install the msi installer

0
source

Try this if you are trying to use Windows7: Add an environment variable in windows Windows + Pause> Advanced Sys options> Environment variables Add new ones under system variables: Variable: Python34 Value: c: \ Python34 \ python.py (or if you have Python installed)

then execute with cmd: c: \ Python34> python setup_bs4.py install (setup_bs4.py-> the BS4 installation file is copied here)

and done ... :) I hope this helps.

0
source

Source: https://habr.com/ru/post/956998/


All Articles