Mac M1 ターミナルで Pythonコマンドが使えない。
Mac M1 ターミナルで Pythonコマンドが使えません
Pythonをインストールしたはずなのに
$ python
zsh: command not found: python
viで編集しようとしても...
$ vi ~/.zshrc
dyld[8099]: Library not loaded:
/usr/local/opt/gettext/lib/libintl.8.dylib
Referenced from: <186DDF42-F14C-32D5-AE34-EF064AE0E8B3>
/usr/local/Cellar/vim/9.0.1350/bin/vim
Reason: tried:
'/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file),
'/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file),
'/usr/local/lib/libintl.8.dylib' (no such file),
'/usr/lib/libintl.8.dylib' (no such file, not in dyld cache)
zsh: abort vi ~/.zshrc
でも Python3は動く...
$ python3 -V
Python 3.11.2
自分で試したこと
・pythonをダウンロードしてきた→Not found
・$ vi ~/.zshrc を使って
alias python='python3'
alias pip='pip3'
と入れようとしたが先ほどのようにエラー
直接.zshrcにぶち込んでも
zsh: command not found: python
0 likes