- 下载并安装Python 3.8.0
- https://www.python.org/ftp/python/3.8.0/
- yum -y install gcc zlib* libffi-devel(安装过的跳过)
- 解压python得到python-3.8.0文件夹
- cd python-3.8.0
- mkdir /usr/local/bin/python3
- ./configure --prefix=/usr/local/bin/python3
- make && make install
- rm -rf /usr/bin/python3
- ln -s /usr/local/bin/python3/bin/python3 /usr/bin/python3
- python3 -V 查看升级后系统默认Python的版本号.
centos8安装python3.8.0
最新推荐文章于 2024-06-18 11:22:41 发布