-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Description
I am on a Mac and using pyenv to manage my python versions.
When I run PyCall on a specific python version, I got
ImportError: No module named site
I dug in the code and discovered that the python dynamic library was not detected correctly.
It turns out that one have to install python via pyenv
with --enable-framework
in order to have the essential file installed.
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.4.3
I just want to make a note here for future pyenv
users
hukevinxiaochen, octylFractal, htaketani, MMatlacz, danthe96 and 10 morea-sneha-a, bstellato, xuefeng-li-sydney, movalex, mohammad-eiq and 3 moreMachine-Jonte
Activity
stevengj commentedon Mar 13, 2015
What precisely does
--enable-framework
do? Is PyCall not detecting the library, or is the library file that we need not installed?randy3k commentedon Mar 13, 2015
--enable-framework
will create the dynamic librarylib/libpython3.4.dylib
which is necessary fordlopen
.see also pyenv/pyenv#99
Without it, it installs only static library
lib/libpython3.4m.a
.