LoginSignup
2
1

More than 3 years have passed since last update.

ターミナルとしてFish Shellを使う際のPython3のPATH設定

Last updated at Posted at 2019-04-13

背景

MacでPython3系をインストールした際に、呼び出すにはpythonではなくpython3コマンドを打たないといけない事にじれったさを感じた

環境

  • MacOS Mojave
  • Fish Shell 3.0.2
  • Homebrew 2.1.0

解決方法

  • bashと同様にPATHを設定すれば良い

手順

  1. brew info pythonでpython3のパスを探す(私の場合は/usr/local/opt/python/libexec/binでした)
  2. ~/.config/fish/config.fishを開く(無い場合は新規作成する)
  3. set PATH /usr/local/opt/python/libexec/bin /usr/local/bin /usr/sbin $PATHを追記する

1の参考:https://codeday.me/jp/qa/20190403/510812.html
2の参考:https://qiita.com/ledsun/items/8ca1a450b21c8ebc9670

2
1
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
2
1