MacBook Pro Retina, Mid 2012 の Python3 および主要パッケージをアップデートする.
- Mountain Lion から Mavericks にアップデート (現在 10.9.5).
Python 3.5.2
$ python3 --version
Python 3.5.1
$ brew reinstall python3 -v
$ python3 --version
Python 3.5.2
主要パッケージのアップデート
$ pip3 install numpy scipy pandas sympy ipython -U
...
Successfully installed decorator-4.0.10 ipython-5.0.0 mpmath-0.19 numpy-1.11.1 pandas-0.18.1 pexpect-4.2.0 pickleshare-0.7.3 prompt-toolkit-1.0.3 pygments-2.1.3 python-dateutil-2.5.3 pytz-2016.6.1 scipy-0.17.1 setuptools-24.3.0 sympy-1.0 traitlets-4.2.2 wcwidth-0.1.7
Jupyter
関連がアップデートされなかったので,再度
$ pip3 jupyter -U
...
Successfully installed entrypoints-0.2.2 ipykernel-4.3.1 ipywidgets-5.2.2 jupyter-client-4.3.0 jupyter-console-5.0.0 jupyter-core-4.1.0 mistune-0.7.3 nbconvert-4.2.0 notebook-4.2.1 pyzmq-15.3.0 qtconsole-4.2.1 tornado-4.4 widgetsnbextension-1.2.6
QuantEcon.py
:
$ pip3 install quantecon -U
Successfully installed quantecon-0.3.3
.
Numba 0.27.0 へのアップデート
LLVM
最新版の 3.8.1 を入れる.
$ brew info llvm
llvm: stable 3.8.1 (bottled), HEAD [keg-only]
...
$ brew reinstall llvm
llvmlite
LLVM_CONFIG_PATH
を設定して pip install
する.
$ export LLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config
$ pip3 install llvmlite -U
すると,RuntimeError: Building llvmlite requires LLVM 3.7.x.
というエラーが出た (インストールしようとするのは 0.12.1 で,LLVM のバージョンと合わない) ので,master の 0.13.0 をインストールする.
$ pip3 install git+https://github.com/numba/llvmlite.git -U
Successfully installed llvmlite-0.13.0.dev0+37.ge206087
と出た.
$ python -m llvmlite.tests
OK.
Numba
$ pip3 install numba -U
で Successfully installed numba-0.27.0
と出た.
コメントを投稿するにはログインしてください。