79639532

Date: 2025-05-26 20:30:08
Score: 1
Natty:
Report link

I just ran into this issue using a pyenv installation on Mac. It seems like numpy.distutils is trying to import distutils.msvccompiler regardless of the OS. A quick fix is to go to the file:

your-python-installation/site-packages/numpy/distutils/mingw32ccompiler.py

and comment out this line:

 distutils.msvccompiler import get_build_version as get_build_msvc_version
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Carlos MM