使用`depot_tools`获取铬源时出现`python:未找到`错误

人气:191 发布:2022-10-16 标签: google-chrome chromium google-chrome-devtools

问题描述

我最近正在跟踪Chromium build instructions for Windows,但fetch产生以下错误:

$ fetch chromium
/c/src/depot_tools/fetch: line 8: exec: python: not found

注意:我的电脑上已经安装了Python3.6。

推荐答案

构建说明未能指定所需的版本,但the Linux ones很清楚:

系统要求

64位Intel计算机,内存至少为8 GB。强烈建议大于16 GB。 至少100 GB可用磁盘空间。 您必须已安装Git和Python v2。

Python3.x的可执行文件是python3,Python2.x的可执行文件是python,因此您需要安装Python2.x。

736