python 源码安装

1)下载python源码包 http://mirrors.sohu.com/python/3.5.2/Python-3.5.2.tgz

2)安装相关依赖  yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make

 

3)解压 python源码包 tar -zxvf Python-3.5.2.tgz

4)cd /app/Python-3.5.2

5) ./configure --prefic=/app/python-3.5.2

6)make && make install

7)配置环境变量  环境变量用冒号:隔开

8) Ipython 安装 pip3 install ipython

 

posted @ 2018-05-01 21:54  随风而逝,只是飘零  阅读(315)  评论(0编辑  收藏  举报