keli / ctp-python

Python版CTP期货接口,支持Linux/Mac/Windows
BSD 2-Clause "Simplified" License
84 stars 41 forks source link

import _ctp ImportError: DLL load failed while importing _ctp: 找不到指定的模块。 #10

Closed kmyface closed 1 month ago

kmyface commented 3 months ago

Windows10下使用conda创建的python3.11.3按照pip install ctp-python之后,import ctp就跳这个提示. File "D:\Program\anaconda3\envs\ctp\Lib\site-packages\ctp.py", line 18, in import _ctp ImportError: DLL load failed while importing _ctp: 找不到指定的模块。

keli commented 3 months ago

libiconv装了吗

conda install -c conda-forge libiconv
kmyface commented 3 months ago

使用Miniconda3重装了一下可以,之前用anaconda装的就不行.