码迷,mamicode.com
首页 > 编程语言 > 详细

centos7 安装 python3

时间:2019-10-01 22:31:45      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:color   软连接   pen   centos7   develop   tool   adl   efi   tar   

sudo yum -y groupinstall "Development tools"
sudo 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 libffi-devel
##### https://www.python.org/ftp/python/ 选择要安装的版本

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0a1.tar.xz
cd ~/Download
tar -xvJf  Python-3.7.0a1.tar.xz
cd Python-3.7.0a1
./configure --prefix=/usr/local/bin/python3
sudo make
sudo make install
### 创建软连接
ln -s /usr/local/bin/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/bin/python3/bin/pip3 /usr/bin/pip3

 

centos7 安装 python3

标签:color   软连接   pen   centos7   develop   tool   adl   efi   tar   

原文地址:https://www.cnblogs.com/zhenfei/p/11616299.html

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