首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

Numpy 编译不过的有关问题

2012-03-27 
Numpy 编译不过的问题错误提示为:File numpy\core\setup.py, line 657, in get_mathlib_inforaise Runti

Numpy 编译不过的问题
错误提示为:

  File "numpy\core\setup.py", line 657, in get_mathlib_info
  raise RuntimeError("Broken toolchain: cannot link a simple C program")

这个错误对应的代码为:

Python code
    def get_mathlib_info(*args):        # Another ugly hack: the mathlib info is known once build_src is run,        # but we cannot use add_installed_pkg_config here either, so we only        # updated the substition dictionary during npymath build        config_cmd = config.get_config_cmd()        # Check that the toolchain works, to fail early if it doesn't        # (avoid late errors with MATHLIB which are confusing if the        # compiler does not work).        st = config_cmd.try_link('int main(void) { return 0;}')        if not st:            raise RuntimeError("Broken toolchain: cannot link a simple C program")        mlibs = check_mathlib(config_cmd)


请懂得的大神帮助!!

[解决办法]
你用啥编译器?你贴的代码注释里不是说了:
# Check that the toolchain works, to fail early if it doesn't
# (avoid late errors with MATHLIB which are confusing if the
# compiler does not work).

热点排行