Python 3.6 へのアップデート (Sierra)

Homebrew で管理している MacBook Pro Retina, Mid 2012 の Python3 の 3.6 へのアップデート.

  • Mountain Lion → Mavericks → Sierra (現在 10.12.3).

Python 3.6.0

$ brew upgrade python3
$ python3 --version
Python 3.6.0

パッケージのインストール

いっしょにインストールされているのは

pip (9.0.1)
setuptools (32.2.0)
wheel (0.29.0)

だけ.

新規に入れ直す.

Jupyter

~/Library/Jupyter/kernels/python2/kernel.json で

  • "/usr/local/opt/python3/bin/python3.5" を "/usr/local/opt/python/bin/python3.6"

に書きかえる.

その他の主要パッケージ

$ pip3 install numpy scipy matplotlib pandas statsmodels sympy sphinx numpydoc sphinx_rtd_theme nose
$ export LLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config
$ pip3 install llvmlite
$ python -m llvmlite.tests
$ pip3 install numba
$ pip3 install git+https://github.com/QuantEcon/QuantEcon.py

この時点でインストールされているパッケージたち

$ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
alabaster (0.7.9)
appdirs (1.4.0)
appnope (0.1.0)
Babel (2.3.4)
bleach (1.5.0)
cycler (0.10.0)
decorator (4.0.11)
docutils (0.13.1)
entrypoints (0.2.2)
html5lib (0.9999999)
imagesize (0.7.1)
ipykernel (4.5.2)
ipython (5.2.2)
ipython-genutils (0.1.0)
ipywidgets (5.2.2)
Jinja2 (2.9.5)
jsonschema (2.6.0)
jupyter (1.0.0)
jupyter-client (4.4.0)
jupyter-console (5.1.0)
jupyter-core (4.2.1)
llvmlite (0.15.0)
MarkupSafe (0.23)
matplotlib (2.0.0)
mistune (0.7.3)
mpmath (0.19)
nbconvert (5.1.1)
nbformat (4.2.0)
nose (1.3.7)
notebook (4.4.1)
numba (0.30.1)
numpy (1.12.0)
numpydoc (0.6.0)
packaging (16.8)
pandas (0.19.2)
pandocfilters (1.4.1)
patsy (0.4.1)
pexpect (4.2.1)
pickleshare (0.7.4)
pip (9.0.1)
prompt-toolkit (1.0.13)
ptyprocess (0.5.1)
Pygments (2.2.0)
pyparsing (2.1.10)
python-dateutil (2.6.0)
pytz (2016.10)
pyzmq (16.0.2)
qtconsole (4.2.1)
quantecon (0.3.4)
requests (2.13.0)
scipy (0.18.1)
setuptools (34.1.1)
simplegeneric (0.8.1)
six (1.10.0)
snowballstemmer (1.2.1)
Sphinx (1.5.2)
sphinx-rtd-theme (0.1.9)
statsmodels (0.8.0)
sympy (1.0)
terminado (0.6)
testpath (0.3)
tornado (4.4.2)
traitlets (4.3.1)
wcwidth (0.1.7)
wheel (0.29.0)
widgetsnbextension (1.2.6)
カテゴリー: Python タグ: , , パーマリンク