为什么node.js需要python [英] Why does node.js need python

查看:482
本文介绍了为什么node.js需要python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用节点启动 这是来自node.js README.md

I am starting up with node This is from node.js README.md

先决条件(仅Unix):

Prerequisites (Unix only):

* GCC 4.2 or newer
* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)

好奇地知道为什么node.js需要Python? 它是否在其API下使用Python

Curious to know why does node.js need Python ? Does it use Python underneath its API

推荐答案

Node.js使用 GYP 构建-用Python编写的跨平台构建工具. Python中还实现了其他一些构建步骤.因此,从源代码构建节点需要Python.

Node.js is built with GYP — cross-platform built tool written in Python. Also some other build steps are implemented in Python. So Python is required for building node from source.

但是您还需要Python来构建本机插件.

But you also need Python for building native addons.

这篇关于为什么node.js需要python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆