shell 脚本自动安装python3

# /bin/bash

cd /opt
yum groupinstall "Development tools" -y
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
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz
if [ -f /opt/Python-3.6..tar.xz ];then
tar -xf Python-3.6..tar.xz
cd /opt/Python-3.6.
./configure --prefix=/usr/local/python3 --enable-optimizations
if [ $ == ];then
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
else
echo "./configure 出现错误"
fi
else
echo "下载失败"
fi

最新文章

  1. vue2.0有哪些变化
  2. SDL鼠标事件
  3. Linux下安装和配置JDK与Tomcat(升级版)
  4. 在object,embed上添加跳转链接(视频上添加跳转)
  5. shell note
  6. springMVC-JSR303数据效验
  7. Php数据类型之整型详解
  8. HDU 5862(离散化+树状数组)
  9. poj3580
  10. jquery cleditor 光标经常点不进去问题解决方法 bootstrap 富文本框 控件
  11. cluster maintain manager Software群集管理软件
  12. DOS(Disk Operation System:磁盘操作系统)常见命令
  13. ABP+AdminLTE+Bootstrap Table权限管理系统第五节--WBEAPI及SwaggerUI
  14. 【编程技巧】EXTJS中Ext.grid.GridPanel配置项autoExpandColumn的使用方法
  15. tidb调研
  16. mysql 存储session
  17. idea structure窗口
  18. centos7 安装jdk8 bash脚本 并配置环境变量
  19. idea 在tomcat中部署的时候 莫名其妙的错误
  20. DragonBones龙骨发布后在Egret中的位置

热门文章

  1. 使用shiro框架,注销问题的解决
  2. Uncaught SyntaxError: Unexpected token <解决方法
  3. yaf
  4. Springboot学习笔记(一)-线程池的简化及使用
  5. 3、zabbix配置入门
  6. [从零开始搭网站八]CentOS使用yum安装Redis的方法
  7. [术语] CRUD 增删改查
  8. 摘录和再编:彻底弄懂JS执行机制
  9. 7.3 GRASP原则三: 低耦合 Low Coupling
  10. POJ3070 斐波那契数列 矩阵快速幂