Linux下安装Python3

87 阅读1分钟

Linux 下安装 Python3

环境:CentOS 7.9

工具:Xshell7

查看 Python 版本   image.png

安装 Python

wget www.python.org/ftp/python/…

image.png

创建放 Python3 的文件夹

mkdir /usr/local/python3/

将文件压缩到 python3

tar -zxf Python-3.7.1rc2.tgz -C /usr/local/python3

image.png

进去目录配置、编译、执行

./configure --with-ssl

make

make install

查看

image.png