相关教程
Python操作虚拟环境
一、目的
CentOS系统安装Python3,并对pip3换源
二、过程
2.1 安装
安装编译Python所需的依赖
yum -y install gcc zlib* libffi-devel
下载Python3
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
![](https://i-blog.csdnimg.cn/blog_migrate/27140d2a21aaa46f0e94e05efd65bb99.png)
解压文件到指定路径
tar -xvf Python-3.8.0.tar.xz -C /usr/bin
进入路径中
cd /usr/bin/Python-3.8.0