Python的安装

 Python的安装

 

环境:

linux 使用centos6.5

192.168.205.242

 

[root@xclinux ~]# uname –r    查看系统位数版本

2.6.32-431.el6.x86_64

[root@xclinux ~]# rpm -q python

python-2.6.6-51.el6.x86_64

[root@xclinux ~]# python –V   查看python版本

Python 2.6.6

 

[root@xclinux ~]# yum install python-pip -y

[root@xclinux ~]# pip install ipython  会自动安装最新版本,然后报错

[root@xclinux ~]# pip install “ipython==1.2.1”   安装适用于python2.6版本的ipython

[root@xclinux ~]# python

Python 2.6.6 (r266:84292, Nov 22 2013, 12:11:10)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2

Type “help”, “copyright”, “credits” or “license” for more information.

>>> print ‘hello world’

hello world

>>> exit()

[root@VM_25_214_centos yum.repos.d]# ipython

Python 2.6.6 (r266:84292, Nov 22 2013, 12:11:10)

Type “copyright”, “credits” or “license” for more information.

 

IPython 1.2.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]:

 

 

说明:

  1. ipythom的版本需要与python相适应
  2. 我这里安装ipython没有成功。采取手动编译安装。

源码包 https://github.com/ipython/ipython/releases?after=rel-2.3.0

安装教程 http://www.linuxidc.com/Linux/2015-03/115601.htm

未经允许不得转载: » Python的安装
微信公众号:这是个测试
关注我们,每天分享更多有趣的事儿,有趣有料!
12000人已关注
分享到:
赞(1) 打赏

相关推荐

评论抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏