-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gyp should check for python2 executable if default python is 3 #526
Comments
So in simple terms it cant run if your machine is running python 3.x |
Technically it can run if you specify the |
I have trying npm installing bcrypt but still rejects due to my version 3 of python. Anyway to get around it? |
@denzelwamburu yes, just run npm config set python /usr/bin/python2.7
npm install and enjoy :) |
Thanks lots. You can close the issue
|
Fixed #526. Check for python2 executable by default, fallback to python
Fixed by #527. |
It's fairly standard these days (at least in *nix flavors) to have "python2" and "python3" binaries installed in an environment where both versions are used. Ideally gyp should check for a python2 executable in the path.
Gyp currently allows explicitly setting --python, however one should only need to use this in special cases, not every time npm is called. You can also set the PYTHON environment variable in your .bashrc, but this variable is fairly generic and might affect other programs that depend on it to mean "the default python on this system".
The text was updated successfully, but these errors were encountered: