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

[DOCS] The latest version of python (3.12) doesn't support node-gyp #7161 #2966

Closed
harshajk opened this issue Jan 23, 2024 · 3 comments
Closed

Comments

@harshajk
Copy link

Is there an existing issue for this?
I have searched the existing issues
This is a CLI Docs Problem, not another kind of Docs Problem.
This is a CLI Docs Problem.
Description of Problem
I am trying the below

npm install

However, I see the below error

npm ERR! ModuleNotFoundError: No module named 'distutils

Reason: The latest version of python (3.12) doesn't support node-gyp.

Potential Solution
node-gyp is currenlty supported only up to python version 3.11

Affected URL
https://www.npmjs.com/package/node-gyp#on-windows

@cclauss
Copy link
Contributor

cclauss commented Jan 23, 2024

@cclauss cclauss closed this as completed Jan 23, 2024
@harshajk
Copy link
Author

harshajk commented Jan 24, 2024

Going through the comments, does running the below command help fix the distutils error?

Link for the comment - #2869 (comment)

python3 -m pip install packaging

@cclauss
Copy link
Contributor

cclauss commented Jan 24, 2024

Let's vendor in packaging so that installing node-gyp does not require running pip install packaging.

We just include all the packaging files in the node-gyp release to avoid the support questions from Node.js users running pip.

I added a clarification at the top of #2869 (comment)

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

2 participants