LoginSignup
0
0

More than 1 year has passed since last update.

% python したら command not found を突きつけられました

Last updated at Posted at 2022-04-19

いつもどおりMacでpython使おうとしたところ。

% python
zsh: command not found: python

いやそんなばかな。タイポしたのかなと、何度か試したけれどもみつからない。

% which python
python not found

PATH以下にないの?昨日まで使えてたが!!

find とか $PATH 確認したりあれこれしたが python でタブ補完したところ python3 がでてきた。なんでこんなことになってんだろ。

以下にハッキリ書いてありました。
https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes

Python
Deprecations
Python 2.7 was removed from macOS in this update. Developers should use Python 3 or an alternative language instead. (39795874)

今回のアップデートでPython2.7をmacOSから削除したぞ。おまえらは python3 か他の言語を代わりに使うべきなんだよ。

あらあ、そうなのね。他の記事でも散々話題になってました。ぼくのアンテナ感度が低かっただけでした。
python3 コマンドはあったので安心。少しびっくりしただけでした。

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