我尝试使用 Anaconda Python 发行版 3.4 在 Windows 7 x64 上安装 odespy ( https://github.com/hplgit/odespy )。如果我开始安装
python setup.py install --no-fortran
安装没问题。因为我需要额外的 Fortran 求解器并且有一条消息“只有 MS 编译器支持 win64 上的 gfortran”,所以我安装了 Visual Studio 2010。当我开始编译时
python setup.py build --compiler=msvc
我从链接器中得到这样的错误:
_odepack.lib(opkda2.o) : error LNK2001: unresolved external symbol _gfortran_runtime_error_at_odepack.lib(solve_odepack.o) : error LNK2019: unresolved external symbol _gfortran_os_error referenced in function solve__odepack.lib(solve_odepack.o) : error LNK2019: unresolved external symbol _gfortran_compare_string referenced in function solve_
我已经在这里上传了完整的编译输出: http://n.ethz.ch/~faheller/download/misc/output_compilation_odespy.txt
有人知道问题出在哪里吗?
最佳答案
Odespy 还没有移植到 Python3。使用 Python27。 ( https://github.com/hplgit/odespy/issues/5 )
关于python - 使用 Fortran 求解器在 Windows 64 位上安装 Odespy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26506925/