Mac OSX SierraにPython環境を構築したときの記録です。 今回は以下の順に入れていきます。 Homebrew : Mac用のパッケージマネージャ。Pythonの使用の有無に関わらず入れておくと便利です。 pyenv : 複数バージョンのpythonを管理するツール。今回はPython2系とPython3系を切り替えるときに使用します。 anaconda : 複数のパッケージがひとまとめになっているPythonのディストリビューション。これを入れるだけで基本的な科学技術計算は問題なくできます。パッケージをいろいろ入れるのがめんどくさいので、今回はanacondaを利用します。 Homebrewをインストール ターミナルを起動したら、以下のコマンドを打ち込みます。それにより、Homebrewがインストールされます。 /usr/bin/ruby -e "$(curl -fsSL