pip install -U numpy
solved it for meIm having similar issues now .
this is the error message i get was a NumPy version incompatibility. The MetaTrader5 library was likely compiled with an older version of NumPy, and your current NumPy version (2.1.0) was causing a conflict.
ive tried it all with the command prompts trying to downgrade numpy but it doesnt work
HELP PLEASE
Hi
Can anyone help me with this import error? I did get numpy 1.19.1 installed and I still got this error. I am using conda enviroment. Please see below error message. Thank you so much for your help.
import numpy as np print(np.__version__)
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Hi Yaw Turkson , did you find a solution? I'm having the same problem at the moment. I've been trying to solve it for quite some time and nothing seems to work.
Im having similar issues now .
this is the error message i get was a NumPy version incompatibility. The MetaTrader5 library was likely compiled with an older version of NumPy, and your current NumPy version (2.1.0) was causing a conflict.
ive tried it all with the command prompts trying to downgrade numpy but it doesnt work
HELP PLEASE
The issue for me as I would imagine would be for many was that Metatrader5 api has a requirement of any version of numpy declared in it's dependency list. This is wrong. It was correct until numpy 2.0 was released as numpy 2.0 wont work with the metatrader5 as i presume 2 has breaking changes.
The solution is to make sure your installed version of numpy is 1.26 or lower and that metatrader5 is using that version. I used pipenv to control my dependencies and the following line solved the issue for me after I'd installed the latest metatrader5 api
pipenv install numpy==1.26
Good luck

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
Can anyone help me with this import error? I did get numpy 1.19.1 installed and I still got this error. I am using conda enviroment. Please see below error message. Thank you so much for your help.
import numpy as np print(np.__version__)
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd