导入pdblp
包后,我收到如下所述的错误。我已经看到其他关于类似问题的blpapi
问题,但没有一个解决方案有效。
我从 Bloomberg API 网站 C/C++ 实验下载移入工作目录blpapi_64.dll
。.lib
使用 Conda python 3.7 重新安装。两次。这可能是管理员权限问题吗?
import pdblp as blp
Traceback (most recent call last):
File "<ipython-input-4-37a5527b622a>", line 1, in <module>
import pdblp as blp
File "C:\Users\abunker\AppData\Local\Continuum\anaconda3\lib\site-packages\pdblp\__init__.py", line 1, in <module>
from .pdblp import BCon # NOQA
File "C:\Users\abunker\AppData\Local\Continuum\anaconda3\lib\site-packages\pdblp\pdblp.py", line 4, in <module>
import blpapi
File "C:\Users\abunker\blpapi\__init__.py", line 5, in <module>
from .internals import CorrelationId
File "C:\Users\abunker\blpapi\internals.py", line 50, in <module>
_internals = swig_import_helper()
File "C:\Users\abunker\blpapi\internals.py", line 42, in swig_import_helper
import _internals
ModuleNotFoundError: No module named '_internals'