shimgo
10/10/2018 - 12:35 AM

Pycallでpythonを動かす

pyenvでpythonのライブラリをインストール

CONFIGURE_OPTS="--enable-shared" pyenv install 3.6.0

環境変数を設定

libpython3.soでもOK
export LIBPYTHON=~/.pyenv/versions/3.6.0/lib/libpython3.6m.dylib

export PYTHON=/Users/cbn0027/.pyenv/shims/python