Building 64-bit Python extensions with f2py on Windows

后端 未结 3 1738
迷失自我
迷失自我 2021-02-04 10:37

I\'m attempting to build a Python extension from Fortran source using Numpy\'s f2py.py script. I\'m following the steps from http://www.scipy.org/F2PY_Windows (web

相关标签:
3条回答
  • 2021-02-04 11:06

    It seems that the solution is to just comment out the exception line. See this blog post.

    0 讨论(0)
  • 2021-02-04 11:17

    This should be fixed in a future release, a discussed and changed.

    It looks like this change did not make it to the 1.9.x maintenance branch, but in the master tree and whatever version is after.

    0 讨论(0)
  • 2021-02-04 11:29

    I had the similar error when trying to install ggplot with

    pip install -U ggplot
    

    The solution was found here: https://github.com/obspy/obspy/wiki/Installation-via-Anaconda

    Anaconda for Windows ships with C and Fortran compilers, however compiling on a 64bit Windows may require a small patch by changing line no. 331 in AnacondaInstallDir\Lib\site-packages\numpy\distutils\fcompiler\gnu.py to pass #raise NotImplementedError("Only MS compiler supported with gfortran on win64").

    0 讨论(0)
提交回复
热议问题