stefan-jansen / machine-learning-for-trading

Code for Machine Learning for Algorithmic Trading, 2nd edition.
https://ml4trading.io
13.52k stars 4.26k forks source link

Mamba env installation fails #287

Closed hacky1610 closed 1 year ago

hacky1610 commented 1 year ago

Describe the bug The installation of the python packages by means of the ml4t.yml file is failing. I am getting the error:

Encountered problems while solving:

To Reproduce

  1. Create a DOCKERFILE inside of the installation folder. The content should be

    Start from a core stack version

    FROM jupyter/datascience-notebook:python-3.8

    Install in the default python3 environment

    COPY ./linux/ml4t.yml /var/tmp/ml4t.yml RUN conda create -n ml4t python=3.8 RUN mamba env update -n ml4t -f /var/tmp/ml4t.yml RUN conda activate ml4t

  2. run docker image build --tag jupyter/base-notebook:my_version .
stefan-jansen commented 1 year ago

I'd recommend to just install the packages you'll actually use given the notebooks of interest. Installation without pinned versions allows access to the latest versions but may fail due to conflicts given python version etc.