CentOS6.7安装Python3.4

1、下载Python3.4安装包

wget https://www.python.org/ftp/python/3.4.4/Python-3.4.4.tgz

2、解压、编译、安装

tar zxvf Python-3.4.4.tgz
cd Python-3.4.4
./configure --prefix=/usr/local/python3
make
make install

3、创建Python3.4的链接(CentOS6.7默认安装的是Python2)

cd /usr/bin/
ln -s /usr/local/python3/bin/python3.4 python3

4、验证

时间: 2024-10-25 18:57:20

CentOS6.7安装Python3.4的相关文章

centos6.8安装python3.7.3报错Can't connect to HTTPS URL because the SSL module is not available问题解决

环境:CentOS release 6.8 (Final) # 直接编译python3.7在使用pip3安装依赖的时候报错: Can't connect to HTTPS URL because the SSL module is not available. 解决方法: 1.编译安装OpenSSL 1.0.2j版本并重新配置环境变量 下载OpenSSL源码包: wget http://www.openssl.org/source/openssl-1.0.2j.tar.gz 解压缩,编译安装:

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.tgzcd Python-3.5.1./configure –prefix=/usr/local –enable-sharedmake && make installln -

CentOS6.8安装Python3.6.3

1.linux下安装python3 准备编译环境(环境如果不对的话,可能遇到各种问题,比如wget无法下载https链接的文件) yum install zlib-devel bzip2-devel openssl-devel ncurses-devel -y 2.下载 Python3.6代码包 wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz 在安装包中有一个README的文件,里面有写如何安装,解压并安装 tar

centos6.5 安装python3.8

最近购买了一台云服务器,无法命令直接安装 python3,在此做个记录 参考来源:http://ask.xmodulo.com/install-python3-centos.html 1. 安装必要的工具 sudo yum install yum-utils 2. 使用 yum-builddep 命令 设置 python 编译环境,下载缺少的依赖 sudo yum-builddep python 3. 下载 python3 的源代码 源代码可以在 https://www.python.org/f

centos6.5 安装python3.5

一.下载Python3.5的源码包并编译 wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz 二.解压后进入目录 tar xf Python-3.5.0.tgzcd Python-3.5.0 三.在编译源码之前先在/usr/local建一个文件夹python3.5(作为python的安装路径,以免覆盖老的版本) 1 mkdir /usr/local/python3.5 开始编译安装 1 ./configure --prefi

CentOS6.5 安装python3.4.3并启用virtualenv

1.安装依赖包 yum install  gcc gcc-c++ openssl-devel zlib zlib-devel 2.下载,并编译安装 # cd /usr/src# wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz# tar xzf Python-3.4.3.tgz#cd Python-3.4.3# ./configure# make altinstall 3.安装ez_setup和pip #cd .. #wg

centos6.9安装python3.6.0和模块

1.安装依赖包 yum -y install wget zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel gcc gcc++ 2.下载python包.解压.编译安装 wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tg

CentOS6.5安装python3.7

1.下载python3 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz 2.解压 [[email protected] ~]# tar -xzvf Python-3.7.0.tgz 先建一个编译目录: [[email protected] ~]# mkdir /usr/local/python3 Python3.7版本需要一个新的包libffi-devel,安装此包之后再次进行编译安装即可. [[email protec

在centos6上面安装python3.4

mkdir -p /work cd /work gwet https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz tar -axf Python-3.4.3.tar.xz cd Python-3.4.3 ./configure make make install