美文网首页
linux自动安装python3.6.1脚本

linux自动安装python3.6.1脚本

作者: 你清澈又神秘 | 来源:发表于2017-11-23 10:27 被阅读33次
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.1/Python-3.6.1.tgz
mkdir -p /usr/local/python3
tar -zxvf Python-3.6.1.tgz
cd Python-3.6.1
./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

相关文章

网友评论

      本文标题:linux自动安装python3.6.1脚本

      本文链接:https://www.haomeiwen.com/subject/geaqpxtx.html