安装GCC必需的三个文件(gmp、mpfr、mpc)之一,gmp,安装此库之前需要先安装M4,否则无法完成安装。另:上述文件我已上传至我的资源,如有需要下载即可。 Mpc is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. It is built upon and follows the same prin
1). 查看Linux版本 [root@lym oracle]# cat /etc/issue Red Hat Enterprise Linux Server release 5 (Tikanga) Kernel \r on an \m 2). 查看内核版本 [root@lym oracle]# uname -a Linux lym.oracle.com 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386 GNU/Li
查看python的版本 python -V 如果是2.7以下版本就需要升级了。
首先去官网下载你想要的python压缩包,然后解压。进入主目录执行以下操作(需要GCC编译器支持)
./configure --prefix=/usr/local
make all
make install
make clean
make distclean
执行完这些命令之后,在 /usr/local/bin/ 目录下就能看到 python2.7 ,然后试着执行 /usr/local/bin/python2.7