centos6.5安装python3.5 和 ipython

云盘包地址 :http://pan.baidu.com/s/1bpsgXUf环境 centos 6.5 最小化安装版,装好开发环境包。

①安装python3.5

yum install readline-devel -y#不安装会导致python解释器里面没法用删除键等
tar -zxvf Python-3.5.1.tgz
cd Python-3.5.1
./configure �prefix=/usr/local �enable-shared
make && make install
ln -s /usr/local/bin/python3 /usr/bin/python3
echo /usr/local/lib >> /etc/ld.so.conf

ldconfig
#安装完成,执行下
[root@localhost ~]# python3
Python 3.5.1 (default,Jun 29 2016,15:56:00)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux
Type “help”,“copyright”,“credits” or “license” for more information.
>>>

②安装python2.7
tar -zxvf Python-2.7.9.tgz
cd Python-2.7.9
./configure �prefix=/usr/local/python27
make && make install
ln -s /usr/local/python27/bin/python2.7 /usr/bin/python27
#2.7 安装完成,测试
[root@localhost ipython-0.13.1]# python27
Python 2.7.9 (default,16:05:04)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type “help”,255);">③安装ipython
tar -zxvf ipython-0.13.1.tar.gz
cd ipython-0.13.1
python27 setup.py build
python27 setup.py build install
ln -s /usr/local/python27/bin/ipython /usr/bin/

#安装完成,测试
[root@localhost ~]# ipython
WARNING: IPython History requires sqlite,your history will not be saved
Python 2.7.9 (default,16:05:04)
Type “copyright”,“credits” or “license” for more information.

IPython 0.13.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]: s
%%script %%sx %save %store %system setattr sorted str super
%%sh %%system %sc %sx set slice staticmethodsum

In [1]: s

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native
centos6.5下postgres-XC集群安装与配置
CentOS 6使用openssl搭建根CA
CentOS6.6中安装VNC server
CentOS下更新Python最新版本
Centos安装pycurl
CentOS 7 安装PostGIS
CentOS 7.1PXE网络自动化安装
CentOS下ffmpeg与第三方编码编译安装
CentOS 6.4安装配置squid
CentOS6.5 安装配置drbd
CentOS6.4 安装jenkins
centos安装增强工具
CentOS6.4安装配置redis
CentOS 6上部署OpenVPN Server