【发布时间】:2018-03-17 12:33:03
【问题描述】:
我最近关注Chromium build instructions for Windows 但fetch 产生以下错误:
$ fetch chromium
/c/src/depot_tools/fetch: line 8: exec: python: not found
注意:我的 PC 上已经安装了 Python 3.6。
【问题讨论】:
-
所以你显然没有安装 python 2?有什么问题?
-
Python 3.6 已经安装在我的电脑上,我已经将它添加到路径中,但 depot_tools 显示此错误
-
Python 2 是必需的。
-
如果您只是在进行 DevTools 开发,请参阅 Run Chrome with your own DevTools frontend 以获得更简单的设置工作流程。
-
您应该安装 depot_tools,它将立即安装所需的 Python 版本,即 2.x。您还应该将该 python exe 的路径从您的 depot_tools 文件夹添加到 env 变量,然后它将起作用。
标签: google-chrome google-chrome-devtools chromium