简体   繁体   English

无法导入 MetaTrader5

[英]Cannot import MetaTrader5

While importing MetaTrader5:导入 MetaTrader5 时:

import MetaTrader5 as mt

I got the following error:我收到以下错误:

RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xe

Traceback (most recent call last):

  File ~\OneDrive\Documents\Programmation\Projets\TRAI\utilities_mt5.py:10
    import MetaTrader5 as mt

  File ~\anaconda3\lib\site-packages\MetaTrader5\__init__.py:257
    from ._core import *

ImportError: numpy.core.multiarray failed to import

I've search a lot and found nothing, so I'm asking, hoping for some answers.我已经搜索了很多,但什么也没找到,所以我在问,希望得到一些答案。

I'm using Spyder, Python 3.8我正在使用 Spyder,Python 3.8

Try updating your numpy尝试更新您的 numpy

pip install -U numpy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM