开发者

How to import a library GMP into Sage/Python project

开发者 https://www.devze.com 2023-04-12 21:49 出处:网络
I have already installed the GMP library, Now i want to import this library to sage project i tried to put :

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

精彩评论

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

关注公众号