系统相关
首页 > 系统相关> > 腾讯云centos6.5 安装zlib+python2.7+机器学习常用库

腾讯云centos6.5 安装zlib+python2.7+机器学习常用库

作者:互联网

腾讯云centos6.5 安装zlib+python2.7+机器学习常用库

本人原文在点击有精彩

1.安装zlib 编译安装会因为gcc编译条件苛

刻报错,不管他了,直接yum

$yum instal gcc zlib-devel

2.安装openssl

$sudo yum install openssl-devel

3.下载Python2.7.3

$wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2

4.解压

$tar -jxvf Python-2.7.3.tar.bz2

5.更改工作目录

$cd Python-2.7.3

6.安装Python2.7.3

$./configure  
$make all
$make install 
$make clean 
$make disclean

7.建立软连接

$mv /usr/bin/python /usr/bin/python2.6.6
$ln -s /usr/local/bin/python2.7 /usr/bin/python

8.查询Python

$python -V

9.解决yum不支持python2.7的问题

$vi /usr/bin/yum

10.安装easy_install

$wget https://pypi.python.org/pypi/ez_setup
$python ez_setup.py

11.安装pip

$easy_install pip insstall

12.安装numpy

$pip install numpy

13.安装scipy

$pip install scipy

标签:bin,python,zlib,python2.7,yum,usr,install,centos6.5,安装
来源: https://blog.csdn.net/NicolasLearner/article/details/115429674