无法在这个位置找到: head2.htm
当前位置: 建站首页 > 新闻动态 > 行业新闻 >

shell全自动安裝python3的脚本制作书写

时间:2021-04-02 18:57来源:未知 作者:jianzhan 点击:
#!/bin/shyum -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-develwget ftp/python/3.7.0/Python-3.7.0.tgztar -zxvf Python-3.7.0.tgzmkdir /us
#!/bin/sh 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 wget ftp/python/3.7.0/Python-3.7.0.tgz tar -zxvf Python-3.7.0.tgz mkdir /usr/local/python3 cd Python-3.7.0 ./configure --prefix=/usr/local/python3 make make install [ -f /usr/bin/python3 ] mv /usr/bin/python3 /usr/bin/python3_old [ -f /usr/bin/pip3 ] mv /usr/bin/pip3 /usr/bin/pip3_old ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3 ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3

ps:下边看看shell脚本制作--一键安裝python3+pip

安裝python3.6.1

#!/bin/bash
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel epel-release gcc
wget ftp/python/3.6.1/Python-3.6.1.tgz
tar vxf Python-3.6.1.tgz
cd Python-3.6.1
./configure --prefix=/usr/local
make make install
cd ..
yum -y install python-pip

安裝python3.6.6

yum install zlib zlib-devel readline-devel sqlite-devel bzip2-devel openssl-devel gdbm-devel libdbi-devel ncurses-libs kernel-devel libxslt-devel libffi-devel python-devel zlib-devel openldap-devel sshpass gcc git -y
yum install downloads/percona-release/redhat/0.1-6/percona-release-0.1-6.noarch.rpm -y
yum install Percona-Server-server-56 install Percona-Server-devel-56 -y
wget ftp/python/3.6.6/Python-3.6.6.tgz #CentOS 7无需安裝python2.7
tar -xzvf Python-3.6.6.tgz
cd Python-3.6.6
./configure --prefix=/usr/local/python3
make all
make install
make clean
make distclean 
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

小结

之上上述是网编给大伙儿详细介绍的shell全自动安裝python3的脚本制作书写,期待对大伙儿有一定的协助,假如大伙儿有一切疑惑请帮我留言板留言,网编会立即回应大伙儿的。在此也十分谢谢大伙儿对诺心互联网网站的适用!
假如你感觉文中对给你协助,热烈欢迎转截,烦请标明出處,感谢!

(责任编辑:admin)
织梦二维码生成器
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
无法在这个位置找到: ajaxfeedback.htm
栏目列表
推荐内容


扫描二维码分享到微信