Install Old Python

最後更新: 2022-12-14

目錄


Ubuntu

 

使用 deadsnakes 提供的 Packages

https://launchpad.net/~deadsnakes

add-apt-repository ppa:deadsnakes/ppa

apt-get update

apt-get install python3.7

VENV

apt-get install python3.7-venv

python3.7 -m venv gym-env

更新 pip

source gym-env/bin/activate

pip install --upgrade pip

pip 安裝出現 Error

ModuleNotFoundError: No module named 'distutils.cmd'

apt-get install python3.7-distutils