首页 > 编程语言 > 详细

Centos8(最小化安装)全新安装Python3.8+pip

时间:2020-07-25 20:20:18      阅读:61      评论:0      收藏:0      [点我收藏+]
yum -y install wget
yum -y install setup 
yum -y install perl
 
 
yum install openssl-devel -y
yum install zlib-devel -y
yum -y groupinstall "Development tools"
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
yum install -y libffi-devel zlib1g-dev
yum install zlib* -y
yum install libffi-devel -y
 
 
wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz
tar -xvJf  Python-3.8.1.tar.xz
mkdir /usr/local/python3 
cd Python-3.8.1
./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl 
make && make install
ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
pip3 install --upgrade pip
————————————————
版权声明:本文为CSDN博主「mayans005」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/mayans005/java/article/details/104159929

  

Centos8(最小化安装)全新安装Python3.8+pip

原文:https://www.cnblogs.com/fanlong0212/p/13376020.html

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