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, Jun 29 2016, 16:05:04)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>>



③安装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, Jun 29 2016, 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         staticmethod  sum

In [1]: s




      本文转自无形于有形  51CTO博客,原文链接:http://blog.51cto.com/jinchuang/1844412,如需转载请自行联系原作者





相关文章
|
3天前
|
关系型数据库 MySQL Linux
centos7安装mysql-带网盘安装包
centos7安装mysql-带网盘安装包
33 2
|
8天前
|
Ubuntu Python
python3安装clickhouse_sqlalchemy(greenlet) 失败
如果上述方法仍然无法解决问题,建议查阅相关错误信息和官方文档,以获取更详细的帮助。确保你的Python环境和依赖库都在最新版本,有时问题可能会因为版本不兼容而导致安装失败。
14 0
|
10天前
|
存储 Linux Shell
centos 部署docker容器 安装 、基本使用方法(一)
centos 部署docker容器 安装 、基本使用方法(一)
18 0
|
10天前
|
分布式计算 Hadoop Java
centos 部署Hadoop-3.0-高性能集群(一)安装
centos 部署Hadoop-3.0-高性能集群(一)安装
12 0
|
10天前
|
关系型数据库 MySQL Linux
CentOS 7 下使用yum安装MySQL5.7.20 最简单 图文详解
CentOS 7 下使用yum安装MySQL5.7.20 最简单 图文详解
46 0
|
12天前
|
数据采集 机器学习/深度学习 人工智能
Python环境搭建—安装Python3解释器
Python环境搭建—安装Python3解释器
31 2
|
13天前
|
Linux API 开发者
python2安装wxpython模块源
【4月更文挑战第4天】
33 11
|
16天前
|
IDE Linux 开发工具
CentOS7.4+REDHAWK2.3.1安装教程——折腾篇
CentOS7.4+REDHAWK2.3.1安装教程——折腾篇
18 0
|
20天前
|
Linux Shell 开发工具
CentOS8中Docker安装及部署
CentOS8中Docker安装及部署
67 0
|
23天前
|
NoSQL 数据可视化 Linux
linux-安装mongdb(centos7.5)
linux-安装mongdb(centos7.5)
10 0

热门文章

最新文章