i'm trying to import talib, but I'm getting this error:
ImportError: libta_lib.so.0: cannot open shared object file: No such file or directory
When I start python like this:
LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" python
import talib works.
How can I turn this solution into a fixed one?
/etc/ld.so.conf
can be modified to adjust the paths that are searched, andldconfig
invoked to check the path). See Where do executables look for shared objects at runtime? on Unix & Linux (where this question would be much more on-topic).