最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - No module named 'distutils.msvccompiler' after using f2py - Stack Overflow

programmeradmin1浏览0评论

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!

发布评论

评论列表(0)

  1. 暂无评论