python3.8环境下 Python API import失败

版本环境:Windows, python3.8.0

已pip install dolphindb

import dolphindb 时失败,报错如下:

attachments-2022-08-KsiPyRcQ62eb8fae9e80b.png

>>> import dolphindb as ddb

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "D:\app\conda\envs\test3\lib\site-packages\dolphindb\__init__.py", line 2, in <module>

    from .session import session

  File "D:\app\conda\envs\test3\lib\site-packages\dolphindb\session.py", line 18, in <module>

    import dolphindbcpp  as ddbcpp

ImportError: DLL load failed while importing dolphindbcpp: 动态链接库(DLL)初始化例程失败。


请问是 Python API 在 windows 环境下不支持 python3.8 吗

请先 登录 后评论

1 个回答

扣扣

您好,DolphinDB Python API 支持 windows 下的 python3.8 > 3.8.0。

“windows 版本的 DolphinDB Python API 支持 Python 3.6-3.8 版本,但仅支持 conda 环境下的 python 3.8;linux 版本的 DolphinDB Python API 支持 Python 3.6-3.9 版本。”

教程链接

请在conda环境下配置python3.8 > 3.8.0(ps:windows下,python 3.8.0 暂不支持 DolphinDB Python API),pip安装 Python API 后 import 。


请先 登录 后评论