需求
- 在centos7.6下离线安装Python,需要详细部署步骤
- Python版本3.7.3
目录结构
![Python离线安装目录结构](https://i-blog.csdnimg.cn/blog_migrate/ae9c324179926377f65dc97ba347a16e.png)
安装Python3.7.3
复制安装包
请将安装Python
文件夹放入指定目录下下,并进入指定目录
进入安装Python
文件夹中
cd 安装Python
解压Python-3.7.3.tar.xz
tar xf Python-3.7.3.tar.xz
进入Python_rpm包
文件夹中
cd Python_rpm包
批量安装rpm软件包
sudo rpm -Uvh *.rpm --nodeps --force
![离线安装Python3环境](https://i-blog.csdnimg.cn/blog_migrate/ceebaff687c171ad8fef4551faa5de1a.png)
返回上级目录
cd ..