Centos7 安装python3.5.3
2021-06-30 02:05
标签:https chmod prefix ssl code bsp python3.5 efi tps 使用root用户安装:切换到root用户 回车,然后输入密码,切换到root用户。 新建一个脚本,如installPython.sh 改变脚本的权限,为其加上执行权限 例如: chmod u+x installPython.sh 使用root用户执行这个脚本: ./installPython.sh Centos7 安装python3.5.3 标签:https chmod prefix ssl code bsp python3.5 efi tps 原文地址:https://www.cnblogs.com/doitjust/p/9643769.htmlsu
#!/bin/bash
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.5.3/Python-3.5.3.tgz
mkdir /usr/local/python3
tar -zxvf Python-3.5.3.tgz
cd Python-3.5.3
./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
pip3 -V
python3 -V
文章标题:Centos7 安装python3.5.3
文章链接:http://soscw.com/index.php/essay/99642.html