来自包管理器的 Debian 9 上的 Python 3.7

来自包管理器的 Debian 9 上的 Python 3.7

我能够安装 Python 3.7 以下这条指令

# Start by installing the packages necessary to build Python source:
$ sudo apt update
$ sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget

# Download the latest release’s source code from the Python download page using the following curl command:
$ curl -O https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz

# When download is complete, extract the tarball:
$ tar -xf Python-3.7.3.tar.xz

# Navigate to the Python source directory and run the configure script that will perform a number of checks to make sure all of the dependencies on your system are present:
$ cd Python-3.7.3
$ ./configure --enable-optimizations

# Run make to start the build process:
$ make -j 8

# Once the build is done install the Python binaries by running the following command as a user with sudo access:
$ sudo make altinstall

但我想知道,是否可以使用包管理器安装(或升级,例如从版本 3.5)Python 3.7?

相关内容