0
0

Pythonをインストールしているがターミナルで command not foundと表示された時

Last updated at Posted at 2023-09-20

はじめに

自分のメモ書きで許してください。

Pythonのインストール手順

私はbrewを使って以下のようにPythonをインストールしました。

brew install python

Pythonを実行します。

python

するとcommand not found: pythonと表示されてしまいました。
Screenshot 2023-09-20 at 14.00.31.png

解決方法

python3

python3とコマンドを実行することで解決できました。

Screenshot 2023-09-20 at 14.04.19.png

過去2回も同じミスにハマってしまったので、ブログにしました。

追記:実行コマンドを終了する

exit()

exit()を使うことでPythonの実行を終了できます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0