我正在尝试从 python 中的 tia 库中导入 bbg 包。但它给了我以下错误。
ImportError: DLL load failed: The specified module could not be found.
我也尝试导入 blpapi lib,但它也给出了同样的错误。我不明白有什么问题。
当我到桌面上的文件夹查看包的位置时,我看到 tia 和 blpapi 的文件都存在。
import blpapi
import tia
Traceback (most recent call last):
File "<ipython-input-1-fc04960a7441>", line 1, in <module>
import blpapi
File "C:\Program Files\Anaconda\lib\site-packages\blpapi\__init__.py", line 5, in <module>
from .internals import CorrelationId
File "C:\Program Files\Anaconda\lib\site-packages\blpapi\internals.py", line 52, in <module>
_internals = swig_import_helper()
File "C:\Program Files\Anaconda\lib\site-packages\blpapi\internals.py", line 48, in swig_import_helper
_mod = imp.load_module('_internals', fp, pathname, description)
File "C:\Program Files\Anaconda\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Program Files\Anaconda\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.