I am trying to run a Fortran module that contains a function that I want to use on Python and apparently what I need to do is run the following line on the terminal
python -m numpy.f2py -c -m my_module fortrancode.pyf fortrancode.f95
But when I do so, I get No module named 'distutils.msvccompiler'
.
I am on Mac and installed setuptools via Homebrew and still get the same error. Surfing the internet, I saw that some people are having the same issue (see: ). I am not used to working on the terminal and with Python in general.
Could you all please give me a hand? Thank you very much in advance!