- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我已经下载了 pyglet,但是当我运行“setup.py”,它只是在命令行:
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
如何修复此错误并安装 pyglet?
最佳答案
如果您刚刚执行了 python setup.py
,您会得到这个 - 您需要键入 python setup.py build
,然后键入 python setup.py安装
。
就像你在 Windows 上一样;即使是上述命令也可能无法正常工作。在这种情况下,您可以 download the Windows installer version这会将库安装到您的默认系统 Python。
关于python - 错误 : No Commands supplied when trying to install pyglet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19672690/
第一次使用 Mercurial,WindowsXP 上出现问题(可能会在所有 Win 安装上发生)。我在一个不明显的地方找到了答案,所以我自己提出/回答这个问题,这样其他人就不必像我一样搜索。 第一次
我有一个用于打印机碳粉库存的 WinForm 桌面应用程序。数据库位于远程 SQL Server 上,仅由两个订单和交货表组成,库存数量仅通过跟踪订单和交货时间计算得出。加上一堆包含制造商、型号、类别
我知道在 SO 上有成千上万个像这样的问题,但我已经看到了所有问题,但我仍然无法解决我的问题。 我正在使用 ansible 做所有事情,所以它非常自动化,但无论如何,这是我的文件: pg_hba.co
数据库.yml: # SQLite version 3.x # gem install sqlite3 # # Ensure the SQLite 3 gem is defined in yo
我正在开发一个 JavaFX 项目,我在其中使用 Task 进行网络调用.不幸的是,我无法找到如何将参数传递给它。我搜索了很多链接,但没有一个提供。来自 java2s 的一个链接声称它们正在通过,但代
我正在尝试从我的 .py 文件创建一个可执行文件。 我这样做了: import cx_Freeze executables = [cx_Freeze.Executable("Cobra.py")] c
版本:postgresql 14 和 citus 10.2 当我执行 select rebalance_table_shards('tbl_name'); 在CN节点,postgresql报错:ERR
背景: 我正在做一个代码翻译项目,需要我生成变量名。我生成的名字都不应该是重复的。 我真的很沮丧,因为使用 Python 生成器函数会非常简单和优雅。 我试过的: 我之前这样做的方式是通过递归调用我的
我正在尝试向 Azure 的认知文本分析提供一些简单的、Hello-Worldish 的 JSON 示例;使用此测试数据: { "documents": [ { "lan
我正在尝试向 Azure 的认知文本分析提供一些简单的、Hello-Worldish 的 JSON 示例;使用此测试数据: { "documents": [ { "lan
我正在尝试使用 Office365 邮件服务器发送邮件,但一直遇到此问题/异常,目前看不到任何解决方案。对此进行了大量研究,但找不到任何具有类似问题的帖子: System.Net.Mail.SmtpE
假设我有 a graph where the x-axis tick labels are very long strings ,所以我想交替填充刻度(文本和 x 轴之间的垂直距离),以便刻度标签不重
我想根据下面的查询输出一个 5 列表,phpmyadmin 上的输出是正确的,但我收到错误: 为 php 页面上的 foreach() 提供的参数无效。任何帮助将不胜感激。谢谢 代码: get('id
给定一个包含成对的“因素”和一个存在标志的表: create table pairs ( factor_1 text, factor_2 text, exists boolean
因此,我必须在 postgres 中导入数据库,但出现以下错误:“未提供服务器!”我搜索了一下,我明白这是因为 PHP 文件大小限制、帖子大小或内存大小。我在 Linux Ubuntu 上使用 LAM
我已经在 linux (kubuntu) 和最新版本的 pgadmin3 上安装了 postgresql 9.2,但是当我连接它们时出现这个错误: 发生错误:连接到服务器时出错:fe_sendauth
我正在尝试使用下面的 setup.py 代码将我的 Python 程序转换为 Py2exe 库: from distutils.core import setup import py2
我正在尝试使用 boost::asio 库在网络上发送原始 TCP 数据包。我的程序在 Mac OS X 10.8 上运行良好,但是当我在 Windows 7 下运行该程序时,出现异常(在控制台中):
所以我已经从初始布局更改了它,但这是我的导航栏当前的样子: Nav Bar 这是我搞砸的代码: {% include 'site-nav' %}
抱歉,因为我的标题与 StackOverFlow 上的许多其他标题相似,但这些解决方案均未解决我的问题。 我正在使用 Relative Layout 设计布局。在代码 View 中设计后,当我更改为图
我是一名优秀的程序员,十分优秀!