第一步、依 Python 安裝版本複製 dll 元件到執行目錄底下。

32位元:MT5APIManager.dll、ManagerKit32.dll

64位元:MT5APIManager64.dll、ManagerKit64.dll

第二步、新增 python 腳本,在最上面加上:

from managerkit import Manager

第三步、安裝 pyinstaller:

pip install pyinstaller

第四步、將腳本編譯成可執行檔:

pyinstaller -F -n managerapi managerapi.py
  • 測試結果如下:

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *