我确实安装了ta-lib并且导出路径没有帮助..
~$ export LD_LIBRARY_PATH=$usr/local/lib:$LD_LIBRARY_PATH
~$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import talib
/usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/xun/.python-eggs is
writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a
more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/talib/__init__.py", line 4, in <module>
File "build/bdist.linux-x86_64/egg/talib/common.py", line 7, in <module>
File "build/bdist.linux-x86_64/egg/talib/common.py", line 6, in __bootstrap__
ImportError: libta_lib.so.0: cannot open shared object file: No such file or directory
帮帮我PLZ ..
答案 0 :(得分:0)
如果您已经安装了libta_lib.so.0
,我认为您在导出路径中输了一个错字。
然后将export LD_LIBRARY_PATH=$usr/local/lib:$LD_LIBRARY_PATH
更改为export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
。