LoginSignup
3
1

More than 5 years have passed since last update.

Homebrew で Python 3.6 を入れる

Posted at

Python 3.7 がリリースされたので、Homebrew で入る python3 のバージョンが 3.7.0 になった。
しかしまだ対応していないモジュールがいくつかあるので、ひとまず 3.6 を使い続けたい。

Homebrew で Python バージョンを指定してインストールする方法は無さそうだったので、以下のようにやる。

$ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb

f2a764e... は Homebrew の Formula が Python 3.7 にバージョンアップされるひとつ前のリビジョン。

History for Formula/python.rb - Homebrew/homebrew-core

しかしひとつ問題があって、Homebrew で入る awscli が Python 3.7 に依存している・・・。
Python 3.7 を消してこの方法で 3.6 を入れると、今度は awscli が動かない。

面倒なのでひとまず放置しているが、多分 awscli もリビジョンを指定してインストールすれば動くのじゃないだろうか。

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