linux安装python3
2020-12-13 01:52
标签:解压 sqlite 编译安装 dir ssl python3 python openssl readline 在官网下载源码tar包 linux安装python3 标签:解压 sqlite 编译安装 dir ssl python3 python openssl readline 原文地址:https://blog.51cto.com/jinkcloud/2408286
https://www.python.org/downloads/source/二、安装
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make libffi-devel
tar xf Python-3.7.3.tar.xz
mkdir /usr/local/python3
cd Python-3.7.3/
./configure prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
三、基本操作
#python2查看版本
python -V
#python3查看版本
python3 -V
下一篇:myeclipse取消js校验