Python3 的安装
2021-02-06 13:18
标签:编译 ncurses 解压 str get 一个 Opens 下载 cal # 下载依赖包 # 解压 tar xf Python-3.6.5.tgz # 编译安装 # 创建软连接 ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3 # 安装一个django pip3 install django==2.1.8 # 查看版本号 python3 --version Python3 的安装 标签:编译 ncurses 解压 str get 一个 Opens 下载 cal 原文地址:https://www.cnblogs.com/suyj/p/12781327.html
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
yum install -y gcc
# 下载安装包
wget -c https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
cd /tmp/Python-3.6.5
./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/pip3.6 /usr/bin/pip3