在导入pdblp
程序包后,出现以下错误。我还看到了与blpapi
问题类似的问题,但是没有一个解决方案有效。
我从彭博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'