linux下安装gmpy2
来源:互联网 发布:python只能在c盘吗 编辑:程序博客网 时间:2024/06/03 08:25
1、linux上安装gmpy2
gmpy2是依赖GMP、MPFR、MPC三个库,故此在linux上安装前得先安装这3个库。
为了后续安装的方便,先建立2个文件夹。
mkdir -p $HOME/srcmkdir -p $HOME/static
2、安装GMP
GMP(The GNU Multiple Precision Arithmetic Library) is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers.
https://gmplib.org/
cd $HOME/srcwget http://www.mpfr.org/mpfr-current/mpfr-3.1.4.tar.bz2tar -jxvf mpfr-3.1.4.tar.bz2cd mpfr-3.1.4./configure --prefix=$HOME/static --enable-static --disable-shared --with-pic --with-gmp=$HOME/staticmake && make check && make install
3、安装MPFR
The MPFR library is a C library for multiple-precision floating-point computations with correct rounding.
http://www.mpfr.org/mpfr-current/#download
当前最新的是3.1.4
cd $HOME/srcwget http://www.mpfr.org/mpfr-current/mpfr-3.1.4.tar.bz2tar -jxvf mpfr-3.1.4.tar.bz2cd mpfr-3.1.4./configure --prefix=$HOME/static --enable-static --disable-shared --with-pic --with-gmp=$HOME/staticmake && make check && make install
4、安装MPC
GNU MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result.
http://www.multiprecision.org/index.php?prog=mpc&page=download
cd $HOME/srcwget ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gztar -zxvf mpc-1.0.3.tar.gzcd mpc-1.0.3./configure --prefix=$HOME/static --enable-static --disable-shared --with-pic --with-gmp=$HOME/static --with-mpfr=$HOME/staticmake && make check && make install
5、安装gmpy2
cd $HOME/srcgit clone https://github.com/aleaxit/gmpycd gmpypython setup.py build_ext --static=$HOME/static install
阅读全文
0 0
- linux下安装gmpy2
- ImportError: No module named 'gmpy2',,本次实践在windows下安装gmpy2
- kali Linux 64位安装python的gmpy2库报错
- gmpy2
- 1、windows上安装gmpy2 在windows上直接安装wheel文件就方便多了。 https://pypi.python.org/pypi/gmpy2 这里面有python2.6、2.7
- 下Linux下安装Python
- Linux下安装Mysql
- Linux下安装MySQL
- Linux 下安装 Oracle9i
- linux下安装jbuilder2005
- Linux 下 wxWidgets 安装
- linux下安装java
- linux下JDK安装
- linux下安装apache
- Linux下安装MYSQL
- Linux下安装jdk
- Linux下安装mysql
- Linux下安装JDK
- lintcode -- 交叉字符串
- java数据结构与算法-双端链表实现队列
- 主成成分分析-PCA
- 每段时间Android开发10个知道(中级系列)-170815
- C++ txt 文件读取,并写入结构体中
- linux下安装gmpy2
- 二叉树深度
- Django的MVC架构(3)
- CF838A-Binary Blocks
- 钉钉的自动打卡上下班辅助android软件
- Android NDK系列(一)-AS使用javah生成so文件
- IOS设置NavigationBar的颜色以及透明度
- eclipse 查询快捷方式
- HDU 2204 Eddy's爱好 (容斥原理)