使用Fortran Solvers在Windows 64位上安装Odespy

时间:2014-10-22 11:56:40

标签: python windows 64-bit

我尝试使用Anaconda Python发行版3.4在Windows 7 x64上安装odespy(https://github.com/hplgit/odespy)。如果我用

开始安装
python setup.py install --no-fortran

安装没问题。因为我需要额外的Fortran求解器,并且在win64"上有一条消息"只有MS编译器支持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

有人知道问题是什么吗?

1 个答案:

答案 0 :(得分:0)

Odespy尚未移植到Python3。使用Python27。 (https://github.com/hplgit/odespy/issues/5