开发者

How to import a library GMP into Sage/Python project

I have already installed the GMP library, Now i want to import this library to sage project i tried to put :

      import libgmpxx.so.4

      libgmpxx.so.4.path.append('usr/local/lib/')

but i开发者_如何学运维t does'nt work unfortunately, how can i do that. regards


Sage's Integer class uses GMP (or MPIR) automatically. If you are trying to use GMP independently of Sage, look at gmpy.

Disclaimer: I'm the maintainer of gmpy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜