Centos7安装Python3.7
程序员文章站
2022-03-11 22:37:50
...
全部操作都在root用户下执行
下载python地址https://www.python.org/getit/
1.安装编译相关工具
yum -y groupinstall "Development tools"
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
yum install libffi-devel -y
2.下载安装包解压
cd #回到用户目录
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
tar -xvJf Python-3.7.0.tar.xz
3.编译安装
mkdir /usr/local/python3 #创建编译安装目录
cd Python-3.7.0
./configure --prefix=/usr/local/python3
make && make install
4.创建软连接
ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
5.验证是否成功
python3 -V
pip3 -V
推荐阅读
-
vs2015怎么手动安装xamarin并配置?
-
chrome浏览器批量/自动化安装扩展:External Extensions
-
安装Daemon Tools重启导致蓝屏是什么情况如何解决
-
安装支付宝安全控件后依然提示安装(明明安装好了)
-
eclipse中怎么安装properties插件?
-
RAD Studio 10 Seattle怎么安装 Delphi 10 Seattle win10破解安装图文教程
-
mysql zip 文件安装教程
-
mysql8.0.11 winx64手动安装配置教程
-
centos7上mysql8.0rpm方式安装教程图解
-
Windows下mysql 8.0.11 安装教程