zlib-sync icon indicating copy to clipboard operation
zlib-sync copied to clipboard

zlib-sync install: ModuleNotFoundError: No module named 'distutils'

Open Shivam0887 opened this issue 1 year ago • 1 comments

I was trying to deploy my Next.js 14 project on Vercel. However, I got this error "zlib-sync install: ModuleNotFoundError: No module named 'distutils'". Official Python Docs states that: distutils is deprecated with removal planned for Python 3.12. In particular, setuptools is an enhanced alternative to distutils. https://docs.python.org/3.10/library/distutils.html

image

Please resolve the issue as soon as possible.

Shivam0887 avatar May 28 '24 08:05 Shivam0887

had this issue too, it's because the node-gyp version used is the one that comes with pnpm. updating to pnpm v9 solved it for me

SuperchupuDev avatar Jun 23 '24 12:06 SuperchupuDev

Updating pnpm to 9 also fixed it for me

3megabytesofhotram avatar Oct 27 '24 16:10 3megabytesofhotram