Workaround I have found
Download Python source from https://www.python.org/
Decompress the source code
Install the following dependencies:
sudo apt update
sudo apt-get install zlib1g-dev (needed to compile Python)
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev (needed by Pip to make SSL requests)
Compile and install Python:
./configure
make
make install
Python 3.6 with Pip should be installed.
本文提供了一种手动编译并安装Python3.6及其包管理器Pip的方法。首先从官网下载Python源代码,然后在Linux环境下解压并安装必要的依赖,包括zlib、libreadline、libncurses、libssl、libsqlite3、tk、libgdbm、libc6和libbz2等。最后通过configure、make和make install命令完成Python的编译和安装。

1618

被折叠的 条评论
为什么被折叠?



