Cloud Drive Package Address: Http://pan.baidu.com/s/1bpsgXUf Environment CentOS 6.5 minimized installation, install the development environment package.
① installation python3.5
yum Install readline-devel-y #不安装会导致python解释器里面没法用删除键等
TAR-ZXVF PYTHON-3.5.1.TGZ
cd python-3.5.1
./configure–prefix=/ USR/LOCAL–ENABLE-SHARED
make && make install
ln-s /USR/LOCAL/BIN/PYTHON3/USR/BIN/PYTHON3
echo/usr/local/lib >>/etc/ld.so.conf
Ldconfig
#安装完成, perform the following
[Email protected] ~]# Python3
Python 3.5.1 (default, June 29 2016, 15:56:00)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on Linux
Type "Help", "copyright", "credits" or "license" for more information.
>>>
② Installation python2.7
TAR-ZXVF python-2.7.9.tgz
CD Python-2.7.9
./configure–prefix=/usr/local/python27
Make && make install
Ln-s/usr/local/python27/bin/python2.7/usr/bin/python27
#2.7 Installation Complete, test
[Email protected] ipython-0.13.1]# python27
Python 2.7.9 (default, June 29 2016, 16:05:04)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
>>>
③ install Ipython
TAR-ZXVF IPYTHON-0.13.1.TAR.GZ
cd ipython-0.13.1
python27 setup.py build
ln-s/usr/ local/python27/bin/ipython/usr/bin/
#安装完成, test
[[email protected] ~]# ipython
WARNING: IPython requires SQLite, your history won't be saved
python 2.7.9 (default, June 29 16:05:04)
type "copyright", "credits" or "license" for more information.
IPython 0.13.1-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]: s
%%script%%sx%save%store%system setattr sorted STR Super
%%sh%%system%sc%sx set slice Staticmethod sum
In [1]: s
This article is from the "Jinchuang" blog, make sure to keep this source http://jinchuang.blog.51cto.com/8690689/1844412
centos6.5 Installing python3.5 and Ipython