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

Centos7-安装py3

时间:2019-10-05 10:18:18      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:adl   gdb   编译   http   configure   bzip   Opens   创建   pip3   

安装依赖

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

标签:adl   gdb   编译   http   configure   bzip   Opens   创建   pip3   

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

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