Node-gyp: Use the right python binary

Created on 30 Oct 2014  路  3Comments  路  Source: nodejs/node-gyp

Hi

It looks like that you use only python2. It's perfectly fine, but you also seems to use /usr/bin/python. In archlinux, it's a symlink to python3. You should use /usr/bin/python2 instead.

Most helpful comment

From the README:

If you have multiple Python versions installed, you can identify which Python version node-gyp uses by setting the '--python' variable:

$ node-gyp --python /path/to/python2.7

If node-gyp is called by way of npm and you have multiple versions of Python installed, then you can set npm's 'python' config key to the appropriate value:

$ npm config set python /path/to/executable/python2.7

All 3 comments

From the README:

If you have multiple Python versions installed, you can identify which Python version node-gyp uses by setting the '--python' variable:

$ node-gyp --python /path/to/python2.7

If node-gyp is called by way of npm and you have multiple versions of Python installed, then you can set npm's 'python' config key to the appropriate value:

$ npm config set python /path/to/executable/python2.7

Well, npm config works, but if gyp only supports python2, you should modify the shebang for it to work out of the box.

Fixed by #527.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexeyvo picture alexeyvo  路  3Comments

jhermsmeier picture jhermsmeier  路  3Comments

kimown picture kimown  路  3Comments

jplatte picture jplatte  路  3Comments

Flimm picture Flimm  路  3Comments