发布时间:2019-06-28 17:45:37编辑:auto阅读(1942)
一、什么是python?
python既是一种面向对象语言,又是一种面向过程的语言。 为什么这么说呢,是因为python既可以以shell形式去过程式的处理问题。也可以像JAVA一样去进行对象之间的操作与联系...
总之,python很强大.
二、python安装
cd /mnt/tools/ wget https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz tar zxf Python-2.7.3.tgz cd Python-2.7.3 ./configure --prefix=/usr/local/python27 make && make install
三、安装ipython-->python一个拓展模块,支持很多方便快捷的功能,例如补全...不安装也可以
wget -O ipython-1.2.1.tar.gz https://github.com/ipython/ipython/releases/download/rel-1.2.1/ipython-1.2.1.tar.gz tar xf ipython-1.2.1.tar.gz cd ipython-1.2.1 /usr/local/python27/bin/python2.7 setup.py install # 查看安装结果 ls /usr/local/python27/bin/ 2to3 idle ipcluster ipcontroller ipengine iplogger iptest ipython irunner pycolor pydoc python python2 python2.7 python2.7-config python2-config python-config smtpd.py # 发现多了一个ipython的程序.
四、创建链接
ln -s /usr/local/python27/bin/python2.7 /usr/bin/python27 ln -s /usr/local/python27/bin/ipython /usr/bin/
OK.至此python安装完成.
此处需要注意的是:不要轻易修改原来系统所用的python环境,可能会导致意想不到的错误,甚至无法修复.
上一篇: python中re time os sy
下一篇: 我所使用的Python扩展程序 for
48737
47774
38544
35738
30175
26916
25948
20789
20558
18946
337°
410°
446°
465°
455°
442°
496°
567°
681°
703°