问题描述
我正在运行最新的 Ubuntu (14.04) 并且刚刚下载了 Node.js tarball.不过我对 Python 不是很熟悉,虽然我喜欢 Ubuntu,但我也不熟悉在 Linux 上下载和安装东西的过程:/
I'm running the latest Ubuntu (14.04) and have just downloaded the Node.js tarball. I'm not very familiar with Python though, and although I love Ubuntu, I'm also not familiar with the process of downloading and installing stuff on Linux as well :/
它在 Node.js 下载页面上说需要 Python 2.6 或 2.7,但我发现新版本的 Python 可用.较新版本的 Python 会正确构建它吗?
It says on the Node.js download page that Python 2.6 or 2.7 is required, but I have found that newer versions of Python are available. Will a newer version of Python build it correctly?
推荐答案
如果您不熟悉 Linux,那么我认为您不想从源代码自己编译 node.js.您仍然可以使用 binaries.tar.gz
If you're not familiar with Linux then I don't think you want to compile node.js yourself from source. You can still use the binaries.tar.gz
有一些 Ubuntu 软件包可以为您安装 node.js!从包管理器安装更容易,试试 https://github.com/joyent/node/wiki/installing-node.js-via-package-manager#debian-and-ubuntu-based-linux-distributions
There are Ubuntu packages that will install node.js for you! Installing from a package manager is easier, try https://github.com/joyent/node/wiki/installing-node.js-via-package-manager#debian-and-ubuntu-based-linux-distributions
至于从源代码构建,Python 3 存在已知问题,参考 https://github.com/joyent/node/wiki/installation#known-issues,所以也许坚持使用 2.6 或 2.7
As for building from source, there are known issues with Python 3, ref https://github.com/joyent/node/wiki/installation#known-issues, so maybe stick with 2.6 or 2.7
这篇关于更高版本的 Python 会构建 Node.js 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!