バージョン3.7.7がインストールされていますが、Pythonバージョン2.7.16が実行されている理由がわかりませんか?

バージョン3.7.7がインストールされていますが、Pythonバージョン2.7.16が実行されている理由がわかりませんか?

WARNING: Python 2.7 is not recommended. This version is included in macOS for compatibility with legacy software. Future versions of macOS will not include Python 2.7. Instead, it is recommended that you transition to using 'python3' from within Terminal.

Python 2.7.16 (デフォルト、2020-02-29、01:55:37) [GCC 4.2. `

ベストアンサー1

たぶん両方が持っているかもしれません。これを試してください

~> python --version
Python 2.7.17

~> python3 --version
Python 3.6.9

また、ソフトウェアが一部の/usr/localパスにインストールされたとしても、必ずしもバイナリやライブラリパスなどのために使用されるわけではありません。

ここに貼り付けた最初のエラーメッセージは次のとおりです。that you transition to using 'python3' from within Terminal.

おすすめ記事