I put tensorflow with GPU enabled in python 3.6.0 which I put in pyenv.
To use it from Julia via PyCall
ENV["PYTHON"]="/Users/foo/.pyenv/versions/3.6.0/bin/python"
Pkg.build("PyCall")
And rebuild PyCall with the PYTHON environment variable
using PyCall
Then
ImportError: No module named site
It seems that the cause is that libpython is a static link when inserting with pyenv. CONFIGURE_OPTS = "--enable-shared" and libpython during pyenv install It was possible to deal with it by passing the option to create by specifying the dynamic link.
CONFIGURE_OPTS="--enable-shared" pyenv install 3.6.0
-Difference between --enable-framework and --enable-shared when building PYTHON
-Mruby-julia can now call Python from mruby -I tried aobench with julia -Plot the ellipse created by 1/7 in Julia language -To draw any point on a scatter plot in Julia language --non vorrei lavorare -I was able to run GPU-compatible Tensorflow from mruby on Windows (MSVC)
Recommended Posts