Re: How to handle ModuleNotFoundError: No module named 'distutils.msvccompiler' on Mac OSX (Intel) using f2py?

Charles R Harris via NumPy-Discussion <[email protected]> Sun, 4 Jan 2026 19:30:56 -0700
Newsgroups gmane.comp.python.numeric.general
Message-ID <CAB6mnxKc6EHOz6qdOL8LNr=SK6ORERkQoB=oFZcnQ+BY9dZ0ow@mail.gmail.com>
On Sun, Jan 4, 2026 at 6:33 PM Samuel H Dupree Jr <[email protected]>
wrote:

> I am resurrecting a Python program I wrote a few years under Python 3.9.
> I'm presently:
>
>    - Running Python 3.11 under Mac OSX Sequoia (ver. 15.7.1)
>    - Using NumPy version 1.26.4
>    - Running on an Intel (x86-64) Mac Pro Desktop (2019)
>    -
>
> The program uses a Fortran 77 subroutine that was wrapped using f2py when
> I running Python 3.9. However, when I attempt to wrap that same subroutine
> (the source code is attached to this note) using f2py in Python 3.11, I get
> the following error message.
>
>
>
Might try using the patch in https://github.com/numpy/numpy/pull/27406.

Chuck

_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/numpy-discussion.python.org
Member address: [email protected]