ubuntu20 のデフォルトの Python バージョンは python3.8 です。 ----------------------------python3.7 バージョンをインストール-------------- 開発には python3 が必要です.7 インストール方法: sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install python3.7
確認する:
$ > Python はどこですか
キーは Python3.7 を参照してください
- - - - - - - - - - - - - - - - - - - - - - - - -多くのバージョン管理-------------------------------------------------
//Pythonのマルチバージョン切り替え
update-alternatives --list <名前>
update-alternatives --install //さまざまなバージョンの Python を追加 //パラメータ名 = python
update-alternatives --set //現在のバージョンを設定します