-
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
Python executable "python" is v3.4.3, which is not supported by gyp #746
Comments
node-gyp -v v3.0.3 not ok
|
Same here.
|
@xing-kenny @lordgreg Please make sure you're passing the |
@TooTallNate thank you for your swift reply. I managed to fix the above error with removing Python 3.* and installing Python 2.* and giving its executable into $PYTHON env. variable. Of course I've thought I'd finally get everything working but no... now I need VS compiler 👎
I'll try to install VS Community Edition. But that's just great... just to make gyp to work, I have to install python and visual studio. Crazy! 🎱 |
@TooTallNate hi i still hit this issue as well
i am not sure on my pc is valid issue, because i have install update which is clear in my machine is
sorry but i already try stackoverflow solution for this, and 3 of them fail. |
@brutalcrozt Install python 2.7. If node-gyp doesn't find it automatically, tell it where to look with |
@bnoordhuis thanks man, already did but lead to #307 any suggestion to find fastest way to satisfy this?
|
You're going to need a compiler. You could give the instructions from #867 a try if VS is too big but one way or another, you're going to need some hard drive space. |
i need time to add 7GB on my disk, so basically as long i need node-gyp i have to keep Microsoft Visual C++ build Tools with their 7GB hard drive space? |
You can try a customized install. I think you only need the C++ compiler and the SDK. Preempting a "how much space will that take?" question: I don't know. :-) |
Got this resolved by :
Hope this helps! |
Resolved (npm 3.9.5, node 6.2.2, python 3.4.4) by running:
|
|
This problem still exists unfortunately. It doesn't like python 3.5 and I've tried installing python 2.7, which also fails in a myriad of ways. |
Same. Running into
Which isn't very useful. Python 2.5 and 2.6 are abandonware with only 2.7 actively supported, and no plans for ever releasing any version past 2.7.x, Python 3 in the mean time really is the main dev branch with minor versions rolling out at quite the steady pace. Installing 2.7 on windows at this point is usually more likely to cause problems than solve them due to conflicting python versions doing all kinds of bad things outside of node-gyp context (say, you work on 20 projects half of which require node and half of which require python3). Checking the version of node-gyp that is used here, the script reports [email protected] (with my node currently at v7.3.0), so this is very much still an issue. |
@Pomax Our upstream dependency gyp is Python 2 only, and as it's now EoL (Google won't be maintaining it) it's unlikely that it will be updated to support Python 3. Efforts are underway to remove/reduce our dependence on it, see #1092 and https://github.com/indutny/gyp.js. |
Error still shows up. I need to install python 2.7.13 to work with this plugin. |
@frekele this fixed the issue. Thanks! |
If you are running into this issue while trying to
That should resolve the issue for you. |
@mcrowe 👍 thanks, that sure saved me some time :-) |
my python default is python3.6, I don't want change it. So I using: |
i have anaconda python 3.* installed. Apparently it is the default on my mac. This worked for me, because I have python2.7 at /usr/bin/python: |
I experienced a similar error
$ source activate python-2_7-old It started working properly after that Here's what I found that was helpful:
Cheers! |
I did --python=python2.7 as well after seeing |
I use prahaladbelavadi's method, it solve my issue. |
I actually use |
I have tried
But I node-gyp still use python3 |
python2 --version |
failed, still used python3 to execute.
command not found
command not found The |
Sorry... I was thinking Linux/Mac. py --version |
I don't wanna revive an old thread from the dead but if anyone has insight I'd be really happy. I'm working on a legacy project (that really needs to be updated, I know) where I use gulp and it relies on node-gyp 3.6.2. I have python 2.7.18.8 installed in a nix shell but it fails anyway saying
I feel like 2.7.18.8 should match |
Python version numbers have a major.minor.micro format and I have never seen one with a major.minor.micro.OTHER format. That could break version detection code. |
I get this error
Because in my distro (Arch Linux) and many others, python3 is the default python interpreter (the "python" executable is a link for "python3").
You can use "python2" instead of "python" in the shebang line, this is a standard since 2011 PEP-394
The text was updated successfully, but these errors were encountered: