6
在NPM安装期间如何使用其他版本的python?
我可以通过终端访问运行centos 5.9的VPS,并安装了默认的python 2.4.3。我还通过以下命令安装了python 2.7.3 :(我使用make altinstall代替make install) wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz tar -xf Python-2.7.3.tgz cd Python-2.7.3 ./configure make make altinstall 然后我通过以下命令从源代码安装了node.js: python2.7 ./configure make make install 问题是,当我使用npm install并尝试安装需要python> 2.4.3的node.js软件包时,出现此错误: gyp ERR! configure error gyp ERR! stack Error: Python executable "python" is v2.4.3, which is not supported by gyp. gyp ERR! stack You …