无法导入MetaTrader5 Python库

o75abkj4  于 2023-03-28  发布在  Python
关注(0)|答案(1)|浏览(147)

我在Windows 11上使用Python 3.8.2。当我尝试导入MetaTrader5时:

import MetaTrader5

我得到了错误:

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import MetaTrader5
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\MetaTrader5\__init__.py", line 257, in <module>
    from ._core import *
ImportError: DLL load failed while importing _core: The specified module could not be found.

你能给我解释一下吗?我该怎么修?

juud5qan

juud5qan1#

我通过导入更多来解决它:

import pandas as pd
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()
import MetaTrader5 as mt5

相关问题