LoginSignup
0
0

More than 1 year has passed since last update.

Mac で brew install python したけど "command not found: python" "command not found: pip" ってエラーが出やがってよ

Last updated at Posted at 2022-05-20

エラー

$ python
zsh: command not found: python

実行ディレクトリを見てみる

$ ls /usr/local/bin/ | grep python
python-build@
python3@
python3-config@
python3.7@
python3.9@
python3.9-config@

python3 コマンドがあるので、そちらを使う

$ python3
Python 3.9.12 (main, May  8 2022, 18:05:47)
[Clang 13.1.6 (clang-1316.0.21.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

起動できた

pip

pip も pip3 という名前になっていやがった

$ ls /usr/local/bin/ | grep pip
pip3@
pip3.9@

バージョン名なしで利用する方法は?

シンボリックリンク貼れば良いだけなんだけど、良い方法は何なのか
誰か教えて

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

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