Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Configuring npm to pick latest python #2599

gametbt opened this Issue Jul 4, 2012 · 2 comments


None yet
3 participants

gametbt commented Jul 4, 2012

Some of us are still stuck with previous versions of Linux installs and is there a way
to breath life into these system? One way to deal with this is to installing latest version
of python separately on these systems and have npm pick the latest installed python
via following settings:
export PYTHON=/usr/bin/python26
export PYTHONHOME=/usr/lib/python2.6
export PYTHONPATH=$PYTHONHOME:/usr/lib/python2.6/lib-dynload

Is this possible? What is the best way to export the environment to npm so that it
always picks the right python version and does not get mangled up with the
default versions on the system?


isaacs commented Jul 12, 2012

@TooTallNate Maybe this should be something that node-gyp responds to?


TooTallNate commented Jul 12, 2012

node-gyp already responds to the PYTHON env variable. Is that not working for you?

@isaacs isaacs closed this Aug 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment