MetaTrader 5 Python User Group - the summary - page 9

 
alkam_ai:
pip install MetaTrader5 does not work even after an upgrade to python 3.8
 
alkam_ai:
pip install MetaTrader5 does not work even after an upgrade to python 3.8

What is the error you are getting?

 
Sergey Golubev:

I think - it is better to wait - because of the following:

So, it is etter to wait for Friday when everything (new functions etc) will be described in the documentation with the examples.

Hi,

I am just curious when this will be ready.  It is still not working for me.  Lemme know.   thanks :)

 
flipper2020:

Hi,

I am just curious when this will be ready.  It is still not working for me.  Lemme know.   thanks :)

Never mind.  It didn't work with python 3.7.  But ok with 3.8.  

 
alkam_ai :
Can this installation be run on linux?

You can install python inside the wine environment.

 

Forum on trading, automated trading systems and testing trading strategies

MetaTrader 5 Python User Group - how to use Python in Metatrader

MetaQuotes , 2020.03.05 21:03

The new build of the Python library 5.0.25 was released

Please update via:

pip install --upgrade metatrader5

 
There is an issue downloading the MetaTrader 5 package using the pip version that comes packaged with python. The workaround is to update pip. The command for updating pip within windows is: 
python -m pip install -U pip

or within the venv using 

(inside virtualenv):easy_install -U pip
 
nicholi shen:
There is an issue downloading the MetaTrader 5 package using the pip version that comes packaged with python. The workaround is to update pip. The command for updating pip within windows is: 

or within the venv using 

hmm ...  it`s ok

(.env) PS C:\Works\test> pip list
Package         Version
--------------- -------
MetaTrader5     5.0.25
numpy           1.18.1
pandas          1.0.1
pip             20.0.2
python-dateutil 2.8.1
pytz            2019.3
setuptools      41.2.0
six             1.14.0
(.env) PS C:\Works\test> pip install --upgrade metatrader5
Collecting metatrader5
  Using cached MetaTrader5-5.0.26-cp38-cp38-win32.whl (99 kB)
Requirement already satisfied, skipping upgrade: numpy>=1.7 in C:\Works\test\.env\lib\site-packages (from metatrader5) (1.18.1)
Installing collected packages: metatrader5
  Attempting uninstall: metatrader5
    Found existing installation: MetaTrader5 5.0.25
    Uninstalling MetaTrader5-5.0.25:
      Successfully uninstalled MetaTrader5-5.0.25
Successfully installed metatrader5-5.0.26
(.env) PS C:\Works\test> pip list
Package         Version
--------------- -------
MetaTrader5     5.0.26
numpy           1.18.1
pandas          1.0.1
pip             20.0.2
python-dateutil 2.8.1
pytz            2019.3
setuptools      41.2.0
six             1.14.0
(.env) PS C:\Works\test> python.exe -V
Python 3.8.0
(.env) PS C:\Works\test>
 
Дмитрий Прокопьев:

hmm ...  it`s ok

That's because you are using `pip` version 20.0.2. The pip that comes with the latest windows python distro is version 19. This is also the version that default with setuptools when using virtual env. Something is broken in those regards. In order to pip install MetaTrader5 on windows you have to have the latest pip, which shouldn't be the case. 

 
nicholi shen:

That's because you are using `pip` version 20.0.2. The pip that comes with the latest windows python distro is version 19. This is also the version that default with setuptools when using virtual env. Something is broken in those regards. In order to pip install MetaTrader5 on windows you have to have the latest pip, which shouldn't be the case. 

Hm ... I had no difficulty installing.


PS C:\Works> mkdir test


    Directory: C:\Works


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        3/10/2020   9:26 AM                test


PS C:\Works> cd .\test\
PS C:\Works\test> pip -V
pip 19.3.1 from c:\program files (x86)\python38-32\lib\site-packages\pip (python 3.8)
PS C:\Works\test> python.exe -m venv .env
PS C:\Works\test> .\.env\Scripts\activate
(.env) PS C:\Works\test> pip list
Package    Version
---------- -------
pip        19.2.3
setuptools 41.2.0
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

(.env) PS C:\Works\test> pip install metatrader5
Collecting metatrader5
  Using cached https://files.pythonhosted.org/packages/80/b1/112d637b125316dd8a2064d115c6e0bd7652be782b2129a8cb5dbc930ec5/MetaTrader5-5.0.26-cp38-cp38-win32.whl
Collecting numpy>=1.7 (from metatrader5)
  Using cached https://files.pythonhosted.org/packages/0e/c3/be53614c4e3490778050e1df48fd463837297d5dd402dae3b500f2050eba/numpy-1.18.1-cp38-cp38-win32.whl
Installing collected packages: numpy, metatrader5
Successfully installed metatrader5-5.0.26 numpy-1.18.1
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

(.env) PS C:\Works\test> pip list
Package     Version
----------- -------
MetaTrader5 5.0.26
numpy       1.18.1
pip         19.2.3
setuptools  41.2.0
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
(.env) PS C:\Works\test>

The message about updating the pip showing constantly, but this has nothing to do lib installation.

Pls, show error logs. Without seeing the error is difficult to say something.

Reason: