python - "python.bat is not recognized"哪里可以获得 python.bat?

标签 python batch-file chromium-embedded

我的机器上安装了 python.exe(多次),但没有安装 python.bat。我正在尝试构建 Chromium 嵌入式框架,主批处理文件显示

@echo off
python.bat tools\gclient_hook.py

但是 python.bat 不在我的机器上,给出错误 'python.bat' 未被识别为内部或外部命令、可操作程序或批处理文件。

有 python 脚本版本吗?
更新:SO User R-nar是正确的,需要剥离 .bat

这不是我的代码,而是 Chromium 嵌入式框架的一部分。 cef_create_projects.bat

好的,修复后我遇到了 Python 2 错误。看起来 python.bat 可能是保持 Python 2 脚本正常运行的间接机制。

最佳答案

您必须使用 depot_tools 中的 python.bat,请参阅此处的步骤 2:

https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart#markdown-header-windows-setup

  1. Download depot_tools.zip and extract to "c:\code\depot_tools". Do not use drag-n-drop or copy-n-paste extract from Explorer, this will not extract the hidden ".git" folder which is necessary for depot_tools to auto-update itself. You can use "Extract all..." from the context menu though. 7-zip is also a good tool for this.

关于python - "python.bat is not recognized"哪里可以获得 python.bat?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42510952/

相关文章:

windows - 批处理文件以将文件夹移动并重命名为相对路径

javascript - 将网页呈现为 H.264

c# - Cefsharp 第二次初始化抛出错误

c++ - 链接 CEF3 的问题

python - 为什么在构建 python 模块时会出现此错误?

python - 在 Python 3 中比较 DNA 序列

Windows CMD/BATCH 保留最新的日期戳文件

windows - 并行执行 shell 命令但限制作业(没有 Cygwin 的 Windows)

python - 对脚本排队器的建议

python - QThread.isFinished 在连接到 finished() 信号的插槽中返回 False