首页 > 其他 > 详细

Centos7-安装py3

时间:2019-10-05 09:08:17      阅读:75      评论:0      收藏:0      [点我收藏+]

安装依赖

yum install gcc openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel libffi-devel tk-devel wget curl-devel -y

wget下载链接

cd /tmp
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz

解压tgz包

tar -zxvf Python-3.7.4.tgz

编译安装

cd Python-3.7.4
./configure prefix=/usr/local/python3
make && make install

创建软链接

ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

Centos7-安装py3

原文:https://www.cnblogs.com/kylingx/p/11623801.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!