gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 15:35:56 29 4
gpt4 key购买 nike

我的机器上安装了 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/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com