Skip to content

Install latest release

Luca Horus edited this page Jun 13, 2022 · 8 revisions

Warning: This guide assumes that your Python 3.* installation uses python3 and pip3 binaries.

Ubuntu 20.04

  • Create a Python Virtual Environment (Optional)

    sudo apt install python3-venv
    python3 -m venv media_client_env
    

    Enable the newly created environment.

    source media_client_env/bin/activate
    

    Assuming ~/home/my_user/media_client/ as the current working directory.

    Now the terminal prompt should look similar to this:

    (media_client_env) my_user@ubuntu:~/home/my_user/media_client/$
    
  • Install PostgreSQL

    PostgreSQL is required by psycopg2.

    sudo apt install postgresql libpq-dev python3-dev
    

    Wheel is required to install psycopg2.

    pip3 install wheel
    
  • Install the latest package using pip.

    pip3 install horus-media-client
    
  • Check installation

    pip3 list | grep horus
    

    Should show a result similar to this:

    $ pip3 list | grep horus
    horus-media-client 0.3.1
    

Windows 10

  • Install Python 3.*

  • Create a Python Virtual Environment (Optional)

    python3 -m venv media_client_env
    

    Enable the newly created environment.

    media_client_env\Scripts\activate.bat
    

    Assuming C:\Users\my_user\media_client\ as the current working directory.

    Now the terminal prompt should look similar to this:

    (media_client_env) C:\Users\my_user\media_client>
    
  • Install PostgreSQL

    PostgreSQL is required by psycopg2.

  • Install the latest package using pip.

    pip3 install horus-media-client
    
  • Check installation

    pip3 list
    

    Should show a result similar to this:

    (media_client_env) C:\Users\my_user\media_client>pip3 list
    Package            Version
    ------------------ -------
    horus-media-client 0.3.3
    numpy              1.19.1
    Pillow             7.2.0
    pip                20.1.1
    psycopg2           2.8.6 
    pymap3d            2.4.1
    scipy              1.5.2
    setuptools         47.1.0
    

Run example strategy tool

python3 -m horus_media_examples.example_strategy --help

See example strategy tool.

Clone this wiki locally