0
点赞
收藏
分享

微信扫一扫

Centos7.6一键安装python3.6.8

盖码范 2022-04-02 阅读 30
centos

linux通过sh脚本快速安装python,傻瓜式,免去打字烦恼
cv工程师

yum install lrzsz -y
yum install wget -y
yum install unzip -y
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc* make -y
cd ~
pwd
touch 1.sh
vi 1.sh
wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
tar -Jxvf Python-3.6.8.tar.xz
cd Python-3.6.8
./configure prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
python3 -V
pip3 list
pip3 -V
esc
:
wq
yes | command or script
chmod 777 1.sh
./1.sh


举报

相关推荐

0 条评论