專案目錄結構:
vnpi
api
ctp
__init__.py
libthostmduserapi.so
libthosttraderapi.so
thostmduserapi.dll
thosttraderapi.dll
vnctpmd.pyd
vnctptd.pyd
其中__init__.py檔案內容:
from .vnctpmd import MdApi
from .vnctptd import TdApi
windows平臺的pycharm運行正常。
ubuntu環境下pycharm運行加載__init__.py檔案報錯: ModuleNotFoundError: No module named 'vnpy.api.ctp.vnctpmd'[/b][/color]
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/21573.html
