Unable to install MetaTrader5
Asked Answered
T

3

14

I could not install MetaTrader5 by:

pip install MetaTrader5

I got the following error:

ERROR: Could not find a version that satisfies the requirement MetaTrader5 (from versions: none) ERROR: No matching distribution found for MetaTrader5

Knowing that I am on MAC laptop and I have Python 3.7.6

Thanks in advance to provide me the solution

Taxexempt answered 10/4, 2020 at 15:46 Comment(2)
Alright, what do/don't you understand from that error message?Disposition
You can use it via this package: pypi.org/project/mt5linuxRossetti
E
9

MetaTrader5 provides a lot of binary wheels but only for w32 and w64. No Linux, no MacOS and no source code. It seems the software is Windows-only.

Their site recommends to use one of the w32/w64 emulators on MacOS.

Ensample answered 10/4, 2020 at 16:12 Comment(6)
Their site also talks about running terminal under Wine - unfortunately MetaTrader5 Python Package will not work under Linux...Combust
@AndyThompson The same as for MacOS — use an emulator. Wine, VirtualBox, qemu, Docker…Ensample
The pythom package from metatrader will not import in wine hence my original commentCombust
It's working just fine in Ubuntu 22.04.Devoted
@JanibSoomro Not Ubuntu — it's Wine emulator which I mentioned above.Ensample
Yes, I meant Wine in Ubuntu 22.04.Devoted
D
3

Folks at MQT5 haven't compiled any version for Linux so far and the only method available is to Installed Python3.x for Windows inside Wine64 and then continue further pip installation accordingly.

I'm on Ubuntu 22.04 and successfully installed MetaTrader5, here are the steps.

This seems to work, I can access MetaTrader5 repository however jupyter crashes when any ipynb file is loaded. Haven't found any solution for this problem but if you save everything in a .py file and execute it normally, it works fine.

Devoted answered 27/9, 2022 at 19:35 Comment(1)
I can confirm this works as of 2023. Please note that you must use python >= 3.8, up to python 3.10 (as of 2023, jan) since the MT5 pip package only supports those versions currently. Otherwise you will get the error "No matching distribution found for MetaTrader5"Whipcord
R
0

only python 3.8.* working or install with pip packge MetaTrader5

Retinitis answered 1/2 at 9:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.