Skip to content
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

NPM install fails on systems with python versions > 3.0 #221

Open
schiegl opened this issue Feb 26, 2016 · 5 comments
Open

NPM install fails on systems with python versions > 3.0 #221

schiegl opened this issue Feb 26, 2016 · 5 comments

Comments

@schiegl
Copy link

schiegl commented Feb 26, 2016

The sqlite3 package expects the default version to be python 2 instead calling python2 directly. I had to manually change the default version in order to install that package. It's also possible to pass the desired version with --python but I didn't know how to do that as I am not familiar with npm.

@kevin2r
Copy link

kevin2r commented May 21, 2016

My python version is 2.7.10 but node-gyp is failing to compile the sqlite3 package when I do a fresh "npm i" in the master branch. This only happens with sqlite3 v3.0.5, when I do a "npm i sqlite3" on a clean project, it installs the sqlite3 v3.1.4 and it works perfectly.

@sachgits
Copy link

sachgits commented Aug 5, 2016

anyone who know which python version to use please help

@tracker1
Copy link
Contributor

tracker1 commented Aug 6, 2016

You need the latest Python 2.7.x or newer (less than 3.x), and you should have the Visual C++ 2015 Build Tools (custom install, check everything) installed in order to build binary modules.

Then you should set your msvs_version for npm/node

  • npm config set msvs_version 2015 (single user)
  • or ... npm config set msvs_version 2015 --global (from admin prompt)

@sachgits
Copy link

sachgits commented Aug 8, 2016

anyone who know which python version to use please help. does not work with python2.7.9

@tracker1
Copy link
Contributor

All I've ever had to do is install python 2.7.x, and the VC++ build tools (or full VS) and set the msvs_version config to match.

Can you post the full error message you are getting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants