Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经安装了 GMP 库,现在我想将这个库导入到我试图放入的 sage 项目中:
import libgmpxx.so.4 libgmpxx.so.4.path.append('usr/local/lib/')
但不幸的是它不起作用,我该怎么做。问候
Sage 的 Integer 类自动使用 GMP(或 MPIR)。如果您尝试独立于 Sage 使用 GMP,请查看gmpy。
免责声明:我是 gmpy 的维护者。