读书人

Numpy 编译不过的有关问题

发布时间: 2012-03-27 13:44:24 作者: rapoo

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).

读书人网 >perl python

热点推荐