enthought - linking to python library using EPD Canopy -
summary: i'm trying install theano python package, , theano install can't find "-lpython2.7" in epd canopy installation.
more details: installed enthought epd canopy python distribution (64-bit academic) in os x 10.6.8. next installed pip via "easy_install pip".
next installed theano via "sudo pip install theano". install looks ok, python -c "import theano" fails. full output @ https://gist.github.com/anonymous/5548936, seems main point is:
problem occurred during compilation command line below:
g++ -dynamiclib -g -d npy_array_ensurecopy=npy_ensurecopy -d npy_array_aligned=npy_aligned -d npy_array_writeable=npy_writeable -d npy_array_update_all=npy_update_all -d npy_array_c_contiguous=npy_c_contiguous -d npy_array_f_contiguous=npy_f_contiguous -fpic -undefined dynamic_lookup -m64 -i/users/rkeisler/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/numpy/core/include -i/applications/canopy.app/appdata/canopy-1.0.0.1160.macosx-x86_64/canopy.app/contents/include/python2.7 -o /users/rkeisler/.theano/compiledir_darwin-10.8.0-x86_64-i386-64bit-i386-2.7.3/lazylinker_ext/lazylinker_ext.so /users/rkeisler/.theano/compiledir_darwin-10.8.0-x86_64-i386-64bit-i386-2.7.3/lazylinker_ext/mod.cpp -l/applications/canopy.app/appdata/canopy-1.0.0.1160.macosx-x86_64/canopy.app/contents/lib -lpython2.7
===============================
ld: library not found -lpython2.7 collect2: ld returned 1 exit status
i've had discussions theano google group, , main message "libpython2.7.so", can't find. checked /users/rkeisler/library/enthought/canopy_64bit/user/lib/. inside python2.7/os.py , python2.7/site-packages, no "libpython*" files.
i did more thorough check libpython* files. things find were:
/usr/lib/python2.5/config/libpython2.5.a /usr/lib/python2.6/config/libpython2.6.a /usr/lib/libpython.dylib /usr/lib/libpython2.5.dylib /usr/lib/libpython2.6.dylib
finally, on epd canopy package list, see "libpython" listed. however, when try install libpython using canopy package manager, "libpython" doesn't appear. it's not available package. i'm not sure go here.
following @robertkern@ information, fixed in development version of theano.
to update development version, do:
pip -u --no-deps git+git://github.com/theano/theano.git
Comments
Post a Comment