1. python安装 //先查看是否存在python的包,如果没有,那可以用yum或去python的官网安装 [[email protected] ~]# rpm -qa|grep python python-2.6.6-51.el6.i686 python-iniparse-0.3.1-2.1.el6.noarch python-urlgrabber-3.9.1-9.el6.noarch 2. python查看版本号 [[email protected] ~]# python -V Python 2.6.6 3.原生python的[tab]键无法补齐命令 解决:装ipython [[email protected] ~]# yum install epel-release [[email protected] ~]# yum install python-pip [[email protected] ~]# pip install ipython //再装ipython //也可以指定版本号 [[email protected] ~]# pip install ipython==1.2.1 //安装好后 直接输入ipython就可以进入python的命令行下 [[email protected] ~]# ipython --可以补齐命令 [[email protected] ~]# pip list //查看安装了什么模块 ======如果使用源码包进行安装===== [[email protected] ~]# cd /usr/local/src [[email protected] src]# tar xf ipython-1.2.1.gz [[email protected] src]# cd ipython-1.2.1 [[email protected] ipython-1.2.1]# python setup.py install --则可以对ipython进行安装 [[email protected] ipython-1.2.1]# pip list --查看是否已安装成功
时间: 2025-01-02 14:15:21