
Debian buster サーバーで Python を 3.7 にアップグレードしようとしています。 と入力するとpython3 --version
が返されますpython 3.6.1
。 ただし、実行するとsudo apt install python3
次の結果が返されます。
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
同様に実行すると、sudo apt-get install python3.7
次の出力が得られます。
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.7 is already the newest version (3.7.3-2).
python3.7 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Python 3.7 がインストールされているように見えますが、使用中のバージョンが 3.6.1 として返されるのはなぜでしょうか?
これを修正して Python 3.7 を使用する方法について何かアイデアはありますか?