原文链接:https://www.cnblogs.com/rookie404/p/6142151.html
说明:该系统之前没安装过任何python版本
1.下载
网址:https://www.python.org/ftp/python/3.6.0/Python-3.6.0a1.tar.xz
- 解压,打开终端输入
tar xvf Python-3.6.0a1.tar.xz
3.编译安装
进入解压后的python目录: ./configure
make && make install
4.测试
输入python3
linux@linux-virtual-machine:~/Downloads/Python-3.6.0a1$ python3
Python 3.7.3 (default, Aug 20 2019, 17:04:43)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
说明安装成功
输入ctrl + d退出
python3源码编译自带pip3。