dolphindb / api_python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

通过pip 安装 报DLL的问题.python版本3.88

cjj208 opened this issue · comments

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

@cjj208
You might be facing this issue because of the following reasons

If you have fixed this problem, please share your experiences with others.

commented

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

我也遇到这个问题。我在win10 python3.8 遇到相同的问题,反复测试好几次。最后切换安装python3.7.9 并对应使用dolphindb 3.17.4 发现可以运行

@windancer79
@Wilson1823

In [2]: pip install dolphindb
Collecting dolphindb
  Using cached dolphindb-1.30.19.1-cp37-cp37m-win_amd64.whl (3.9 MB)
Requirement already satisfied: future in c:\qgb\anaconda3\lib\site-packages (from dolphindb) (0.18.2)
Requirement already satisfied: numpy<=1.22.3,>=1.18 in c:\qgb\anaconda3\lib\site-packages (from dolphindb) (1.21.6)
Requirement already satisfied: pandas!=1.3.0,>=0.25.1 in c:\qgb\anaconda3\lib\site-packages (from dolphindb) (0.25.3)
Requirement already satisfied: python-dateutil>=2.6.1 in c:\qgb\anaconda3\lib\site-packages (from pandas!=1.3.0,>=0.25.1->dolphindb) (2.8.0)
Requirement already satisfied: pytz>=2017.2 in c:\qgb\anaconda3\lib\site-packages (from pandas!=1.3.0,>=0.25.1->dolphindb) (2021.3)
Requirement already satisfied: six>=1.5 in c:\qgb\anaconda3\lib\site-packages (from python-dateutil>=2.6.1->pandas!=1.3.0,>=0.25.1->dolphindb) (1.15.0)
Installing collected packages: dolphindb
Successfully installed dolphindb-1.30.19.1
Note: you may need to restart the kernel to use updated packages.


C:\QGB\Anaconda3\lib\site-packages\dolphindb\__init__.py in <module>
      1 name = "dolphindb"
----> 2 from .session import session
      3 from .session import DBConnectionPool
      4 from .session import BlockReader
      5 from .session import PartitionedTableAppender

C:\QGB\Anaconda3\lib\site-packages\dolphindb\session.py in <module>
     23
     24 sys.path.append(os.path.dirname(__file__))
---> 25 import dolphindbcpp  as ddbcpp
     26
     27

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

请问你的python是什么版本?

目前windows 版本的 DolphinDB Python API 支持 Python 3.6-3.8 版本,但仅支持 conda 环境下的 python 3.8;
请在conda环境下配置python3.8 > 3.8.0(ps:windows下,python 3.8.0 暂不支持 DolphinDB Python API),pip安装 Python API 后 import 。

3.9 win 非conda 何时发布?

版本在测试中,预计下周初发布。