概述
ipython是python的增强环境,可以语法着色,自动补全,功能 强大
先安装基本环境包yum groupinstall "Development Tools"
yum install zlib zlib-devel readline-devel sqlite-devel bzip2-devel openssl-devel gdbm-devel libdbi-devel ncurses-libs
上传python安装包 Python-2.7.12.tgztar xf Python-2.7.12.tgz
./configure --prefix=/usr/local/python2.7.12
make
make install
ln -s /usr/local/python2.7.12 /usr/local/python
ln -s /usr/local/python/bin/python /usr/bin/python27
安装setuptools-25.1.3tar xf setuptools-25.1.3.tar.gz
cd setuptools-25.1.3
python27 setup.py build
python27 setup.py install
安装ipython2.2.0tar xf ipython-2.2.0.tar.gz
cd ipython-2.2.0
python27 setup.py build
python27 setup.py install
ln -s /usr/local/python2.7.12/bin/ipython /usr/bin/ipython
启动ipython命令,有自动补全功能,即表明安装成功[root@py ipython-2.2.0]# ipython
Python 2.7.12 (default, Aug 3 2016, 20:55:32)
Type "copyright", "credits" or "license" for more information.
IPython 2.2.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]: import math
In [2]: math.
math.acos math.ceil math.erfc math.frexp math.lgamma math.radians
math.acosh math.copysign math.exp math.fsum math.log math.sin
math.asin math.cos math.expm1 math.gamma math.log10 math.sinh
math.asinh math.cosh math.fabs math.hypot math.log1p math.sqrt
math.atan math.degrees math.factorial math.isinf math.modf math.tan
math.atan2 math.e math.floor math.isnan math.pi math.tanh
math.atanh math.erf math.fmod math.ldexp math.pow math.trunc
In [2]: math.
原文地址:http://francis198.blog.51cto.com/720670/1834107
最后
以上就是眯眯眼宝马为你收集整理的python2.7.12安装教程-python2.7.12+ipython2.2.0安装过程的全部内容,希望文章能够帮你解决python2.7.12安装教程-python2.7.12+ipython2.2.0安装过程所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复