
上QQ阅读APP看书,第一时间看更新
Installing Python on Linux
On Debian derivatives such as Ubuntu, use APT to install Python. Afterwards, it is recommended to upgrade the pip version. pip (https://pip.pypa.io/en/stable/) is the PyPA (https://packaging.python.org/guides/tool-recommendations/) recommended tool for installing Python packages:
$ sudo apt-get install python3.7
$ sudo pip install --upgrade pip
To verify that Python has been installed correctly, open a Command Prompt or shell and run the following command:
$ python3 --version
Python 3.7.0