Problem with 'pip install MetaTrader5' - MetaTrader module for integration with Python - page 3

 

I found solution.

https://pypi.org/project/MetaTrader5/

So if you are using any version other than this you will not be able to install it.

MetaTrader5
  • 2023.04.21
  • pypi.org
API Connector to MetaTrader 5 Terminal
 
only python 3.8 working packeg MetaTrader5  
 
PS C:\Windows\system32\example\project_2>  poetry add metatrader5
Using version ^5.0.45 for metatrader5

Updating dependencies
Resolving dependencies... (0.1s)

Package operations: 1 install, 0 updates, 0 removals

  • Installing metatrader5 (5.0.45): Failed

  RuntimeError

  Unable to find installation candidates for metatrader5 (5.0.45) 
at ~\AppData\Roaming\Python\Python312\site-packages\poetry\installation\chooser.py:73 in choose_for
       69│
       70│             links.append(link)
       71│
       72│         if not links:
    →  73│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       74│
       75│         # Get the best link
       76│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       77
Cannot install metatrader5.

any solution for this issue

 
Just downgrade python version.

This link shows available versions for it:
https://pypi.org/project/metatrader5/#files
metatrader5
  • 2025.11.14
  • pypi.org
API Connector to MetaTrader 5 Terminal
 

Hello,

I had the same problem. The problem is that the documentation says to install python3.8. To make it work, you need to use the latest python3 version that supports the metatrader5 package. In my case and at the time of this writing, this is python3.13.3. python3.14 is already available, but doesn't seem to support mt5, yet (so don't chose the latest python3 version blindly).

You can check which python versions are supported on the following website:

https://pypi.org/project/metatrader5/

(see attached screenshot).

Cheers.