CentOS 安装python 3.3.2

参考:http://www.cnblogs.com/xiekeli/archive/2012/04/27/2474230.html

资源网站:python.org/getit/

版本:

http://python.org/ftp/python/3.3.2/Python-3.3.2.tar.xz

1 tar xvf python-3.3.2*
3 cd python-3.3.2
5 ./configure
7 make && make install

直接命令行进入,输入python

# python
Python 2.6.6 (r266:84292, Jun 18 2012, 14:18:47)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "hell world!"
hell world!
>>> a = 100
>>> print a
100
>>> a = 100
>>> b = 200
>>> print a+b
300
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> exit()

至此告一段落,下一步是搭建web server nginx , 如果进行顺利就可以开发学习了

 看见网上博客上都在愁着找python的IDE,我觉得还是vi/vim比较好,没有语法性提示,轻巧快捷,不会了就看文档

原文地址:https://www.cnblogs.com/the-moving-ear/p/3142333.html