WiseLibs / better-sqlite3

The fastest and simplest library for SQLite3 in Node.js.
MIT License
5.26k stars 391 forks source link

install doesn't work with Python 3.12 on Windows #1093

Closed davidcornish closed 9 months ago

davidcornish commented 9 months ago

When installing with Python 3.12 installed on Windows I get:

npm ERR! ModuleNotFoundError: No module named 'distutils'

If I downgrade to Python 3.11 it installs fine.

Presumably due to https://docs.python.org/3.10/whatsnew/3.10.html#distutils-deprecated

mceachen commented 9 months ago

This is an issue with node-gyp: run pip install setuptools and retry.

Details: https://github.com/nodejs/node-gyp/issues/2915