Building 64-bit Python extensions with f2py on Windows

后端 未结 3 1740
迷失自我
迷失自我 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: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").

提交回复
热议问题