0
0

久しぶりのターミナルでpythonを起動させる方法を忘れた。

Last updated at Posted at 2024-04-04

①自分のmacでpythonを起動する際にpythonがインストールされているか確認する。

$ python3 --version
Python 3.8.6

②pythonを起動させる

$ python 3.8.6
-bash: python: command not found

あれ?

$ python
-bash: python: command not found

なんで?

$ python -v
-bash: python: command not found

ターミナルでpythonを起動させる方法を忘れてしまった。

対処

参考

$ python3
Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

無事起動できました!

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