這篇文章給大家分享的是有關(guān)shell怎么實(shí)現(xiàn)自動(dòng)安裝python3的腳本的內(nèi)容。小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過(guò)來(lái)看看吧。
在成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè)過(guò)程中,需要針對(duì)客戶的行業(yè)特點(diǎn)、產(chǎn)品特性、目標(biāo)受眾和市場(chǎng)情況進(jìn)行定位分析,以確定網(wǎng)站的風(fēng)格、色彩、版式、交互等方面的設(shè)計(jì)方向。創(chuàng)新互聯(lián)建站還需要根據(jù)客戶的需求進(jìn)行功能模塊的開(kāi)發(fā)和設(shè)計(jì),包括內(nèi)容管理、前臺(tái)展示、用戶權(quán)限管理、數(shù)據(jù)統(tǒng)計(jì)和安全保護(hù)等功能。root用戶權(quán)限
# vim install_python3.sh 1 #!/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 /tupian/20230522/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 /tupian/20230522/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 /tupian/20230522/downloads yum install Percona-Server-server-56 install Percona-Server-devel-56 -y wget https://www.python.org/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
感謝各位的閱讀!關(guān)于“shell怎么實(shí)現(xiàn)自動(dòng)安裝python3的腳本”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!
網(wǎng)頁(yè)標(biāo)題:shell怎么實(shí)現(xiàn)自動(dòng)安裝python3的腳本-創(chuàng)新互聯(lián)
網(wǎng)站鏈接:http://jinyejixie.com/article28/dpsscp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、網(wǎng)站內(nèi)鏈、小程序開(kāi)發(fā)、移動(dòng)網(wǎng)站建設(shè)、面包屑導(dǎo)航、微信小程序
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容