win11,python3.91
ImportError: DLL load failed while importing tqsdk2: 找不到指定的模块
是因为不兼容吗
一样的问题,python3.11.1, tqsdk2-2.2.10
In [1]: from tqsdk2 import TqApi, TqAuth, TqAccount, TargetPosTask
—————————————————————————
ImportError Traceback (most recent call last)
Cell In[1], line 1
—-> 1 from tqsdk2 import TqApi, TqAuth, TqAccount, TargetPosTask
File ~\.virtualenvs\pj-YeeSruj8\Lib\site-packages\tqsdk2\__init__.py:13
10 os.environ[‘TQSDK2_RUN_PATH’] = this_dir
11 os.environ[‘TQSDK2_WEB_PATH’] = os.path.join(this_dir, ‘web’)
—> 13 from tqsdk2.tqsdk2 import TqApi
14 from tqsdk2.tqsdk2 import TqAuth
15 from tqsdk2.tqsdk2 import TqAccount, TqCtp, TqSim, TqKq, TqRohon, TqJees, TqYida, TqKqStock
ImportError: DLL load failed while importing tqsdk2: 找不到指定的程序。
我们前段时间有排查出一个tqsdk2缺少依赖库的问题
你可以再尝试更新tqsdk2的版本之后再试试
另外有问题欢迎加入我们的QQ群及时反馈619870862