码迷,mamicode.com
首页 > 编程语言 > 详细

install python

时间:2015-05-13 17:02:02      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:python   local   

install python


[root@localhost bin]# yum install readline readline-devel ncurses ncurses-devel -y

[root@localhost bin]# wget --no-check-certificate  https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz

[root@localhost bin]# wget --no-check-certificate  https://github.com/ipython/ipython/releases/download/rel-2.1.0/ipython-2.1.0.tar.gz

[root@localhost bin]# tar fvxz Python-2.7.8.tgz

[root@localhost bin]# cd Python-2.7.8

[root@localhost bin]# ./configure --prefix=/usr/local/python27 && make && make install

[root@localhost bin]# tar fvxz ipython.tar.gz

[root@localhost bin]# cd ipython-2.1.0/

[root@localhost bin]# /usr/local/python27/bin/python2.7 setup.py build

[root@localhost bin]# /usr/local/python27/bin/python2.7 setup.py install
[root@localhost bin]# cd /usr/bin
[root@localhost bin]# ln -sv /usr/local/python27/bin/ipython . 
[root@localhost bin]# ipython
WARNING: IPython History requires SQLite, your history will not be saved
Python 2.7.9 (default, Jan 30 2015, 00:13:35)
Type "copyright", "credits" or "license" for more information.

IPython 3.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython‘s features.
%quickref -> Quick reference.
help      -> Python‘s own help system.
object?   -> Details about ‘object‘, use ‘object??‘ for extra details.

In [1]:  


install python

标签:python   local   

原文地址:http://madland.blog.51cto.com/1059991/1651004

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!