Error no commands supplied 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:PythonXIncludepygletpyglet-1.1.4setup.p...

Asked
9 years, 3 months ago

Viewed
54k times

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:PythonXIncludepygletpyglet-1.1.4setup.py», line 285, in

setup(**setup_info)

File «C:Python27libdistutilscore.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?

asked Oct 30, 2013 at 2:21

Hissing Cockroach's user avatar

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.

answered Oct 30, 2013 at 2:28

Burhan Khalid's user avatar

Burhan KhalidBurhan Khalid

167k18 gold badges242 silver badges279 bronze badges

4

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

answered Nov 27, 2014 at 15:12

Kindson Munonye Kany's user avatar

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:Python34python.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.

answered Aug 27, 2016 at 5:15

Saurabh's user avatar

Asked
9 years, 3 months ago

Viewed
54k times

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:PythonXIncludepygletpyglet-1.1.4setup.py», line 285, in

setup(**setup_info)

File «C:Python27libdistutilscore.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?

asked Oct 30, 2013 at 2:21

Hissing Cockroach's user avatar

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.

answered Oct 30, 2013 at 2:28

Burhan Khalid's user avatar

Burhan KhalidBurhan Khalid

167k18 gold badges242 silver badges279 bronze badges

4

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

answered Nov 27, 2014 at 15:12

Kindson Munonye Kany's user avatar

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:Python34python.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.

answered Aug 27, 2016 at 5:15

Saurabh's user avatar

Содержание

  1. Error: No Commands supplied when trying to install pyglet
  2. Python-сообщество
  3. Уведомления
  4. #1 Ноя. 5, 2008 11:31:01
  5. py2exe
  6. #2 Ноя. 5, 2008 11:34:53
  7. py2exe
  8. #3 Ноя. 5, 2008 11:34:57
  9. py2exe
  10. #4 Ноя. 5, 2008 11:53:39
  11. py2exe
  12. #5 Ноя. 5, 2008 12:10:20
  13. py2exe
  14. #6 Ноя. 5, 2008 13:25:44
  15. py2exe
  16. #7 Ноя. 5, 2008 13:50:59
  17. py2exe
  18. #8 Ноя. 5, 2008 14:25:55
  19. py2exe
  20. #9 Июль 20, 2009 14:03:10
  21. py2exe
  22. #10 Июль 20, 2009 23:53:49
  23. py2exe

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:PythonXIncludepygletpyglet-1.1.4setup.py», line 285, in

File «C:Python27libdistutilscore.py», line 140, in setup

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 (http://www.lfd.uci.edu/

gohlke/pythonlibs/#pyglet) which will install the library to your default system Python.

9 years, 2 months ago

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

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

Here’s the 64 bit installer:

and the 32 bit installer:

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:Python34python.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.

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

He is trying to install it, not run it. 9 years, 2 months ago

None of these commands work on either command line or command prompt. They all are either invalid syntax or ‘python’ is not recognized as an internal or external command, operable program or batch file. 9 years, 2 months ago

If you check that link, the pyglet devs say that it doesn’t need to be installed; it’s portable. 9 years, 2 months ago

Yes, I read that, but can anyone tell me how to download/get/whatever pyglet? 9 years, 2 months ago

Check my edit, they have an msi installer on their download page. Did you try that? 9 years, 2 months ago

@theSilentOne: It said i required 1.4 or later. 9 years, 2 months ago

Who is «it» that said that? 9 years, 2 months ago

@Hissing Cockroach, check the other links I posted. Pick the Python installer for the architecture of your windows machine. 9 years, 2 months ago

The window still said I had to have 2.4 or later, even after I downloaded 3.3.2 9 years, 2 months ago

Источник

Python-сообщество

Уведомления

#1 Ноя. 5, 2008 11:31:01

py2exe

кто знает где можно скачать py2exe для windows и python 2.5.2 (желательно ссылка)

#2 Ноя. 5, 2008 11:34:53

py2exe

#3 Ноя. 5, 2008 11:34:57

py2exe

#4 Ноя. 5, 2008 11:53:39

py2exe

кто знает почему когда я запускаю setup.py и мой код называется script.py я получаю такую ошибку:

Traceback (most recent call last):
File “C:/Documents and Settings/InternetComp-5/Мои документы/setup.py”, line 5, in
setup(console=)
File “C:Python25libdistutilscore.py”, line 139, in setup
raise SystemExit, gen_usage(dist.script_name) + “nerror: %s” % msg
SystemExit: usage: setup.py cmd1 [cmd2 …]
or: setup.py –help
or: setup.py –help-commands
or: setup.py cmd –help

error: no commands supplied

#5 Ноя. 5, 2008 12:10:20

py2exe

l-i-m-o-n_1
кто знает почему когда я запускаю setup.py и мой код называется script.py я получаю такую ошибку:

Отредактировано (Ноя. 5, 2008 12:15:14)

#6 Ноя. 5, 2008 13:25:44

py2exe

вот сожержимое setup.py:

Отредактировано (Ноя. 5, 2008 13:26:59)

#7 Ноя. 5, 2008 13:50:59

py2exe

Ты походу свой setup.py из под IDE запускаешь. Сделай батник в той папке где у тебя setup.py и script.py и напиши в нем:

#8 Ноя. 5, 2008 14:25:55

py2exe

timas, спасибо теперь буду знать

#9 Июль 20, 2009 14:03:10

py2exe

В продолжении темы )
Запускаю свой файл
from distutils.core import setup
import py2exe
setup(windows=)

и получаю следущее:
erroe: MSVCP90.dll: No such file or directory

дллка на месте, где ей и положено быть (

#10 Июль 20, 2009 23:53:49

py2exe

Python 2.6? Я не так давно столкнулся с этой проблемой. Читать тут.

Источник

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Error ink art
  • Error no browserslist config found to handle the browserslist target
  • Error in render typeerror cannot read properties of undefined reading filter
  • Error no bootable partition found
  • Error in render typeerror cannot convert undefined or null to object

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии