码迷,mamicode.com
首页 > 其他好文 > 详细

Centos-安装py3

时间:2019-10-02 10:23:45      阅读:80      评论:0      收藏:0      [点我收藏+]

标签:依赖   下载   tps   wget curl   org   python3   figure   ftp   bzip   

# 1 安装依赖
yum install gcc openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel libffi-devel tk-devel wget curl-devel
# 2 wget下载链接
cd /tmp
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
# 3 解压tgz包
tar -zxvf Python-3.7.4.tgz
# 4 编译安装
cd Python-3.7.4
./configure prefix=/usr/local/python3
make && make install
# 5 创建软链接
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

Centos-安装py3

标签:依赖   下载   tps   wget curl   org   python3   figure   ftp   bzip   

原文地址:https://www.cnblogs.com/kylingx/p/11616887.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!