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.
精彩评论