【发布时间】:2013-09-01 16:03:13
【问题描述】:
在尝试下载 Pyspeckit(一个天文学程序)时,我需要获取 matplotlib 才能使其工作。但是,当我尝试安装 matplotlib 时,cygwin 给了我错误:
In file included from lib/matplotlib/tri/_tri.cpp:8:0:
lib/matplotlib/tri/_tri.h:821:33: error: expected unqualified-id before numeric constant
lib/matplotlib/tri/_tri.cpp: In constructor ‘RandomNumberGenerator::RandomNumberGenerator(long unsigned int)’:
lib/matplotlib/tri/_tri.cpp:2180:28: error: expected identifier before numeric constant
lib/matplotlib/tri/_tri.cpp:2180:28: error: expected ‘{’ before numeric constant
lib/matplotlib/tri/_tri.cpp: At global scope:
lib/matplotlib/tri/_tri.cpp:2180:28: error: expected unqualified-id before numeric constant
error: command 'gcc' failed with exit status 1
所以我想知道是否有人可以解决这个问题?我通过 Cygwin 使用 python 2.7.3,所以使用安装程序 exe 不起作用。
如果没有,是否可以指出我如何从 cygwin 中访问类似 canopy 的东西,因为 canopy 或类似的包已经预装了 matplotlib?
感谢您的宝贵时间。
【问题讨论】:
-
这些只是 gcc 编译器错误,因此 C++ 代码中可能存在 gcc 无法理解的内容。尝试查看它说是错误的代码行,如果仍然无法得到它,请使用 C++ 标记发布问题。
标签: python windows gcc matplotlib cygwin