Zipline installation issues

157 views
Skip to first unread message

Digital Astronaut

unread,
Aug 22, 2024, 10:48:23 AM8/22/24
to Zipline Python Opensource Backtester
Hello all,
Recently I decided to start a project with the Zipline Python library. But failed miserably. I first tried to install it normally with pip install, with the current version of Python 3.12.4, and an error with the pip version, I don't know, broke the installation. I think that's because of my Python and pip (3.2.14, 24.2) versions. So I decided to create a Dockerfile, instead of an environment, to install zipline using Python 3.6: FROM python:3.6

WORKDIR /usr/src/app

COPY . .

RUN pip install zipline

CMD ["/bin/bash"]

It took a little bit of time to install all the dependencies of Zipline and I ended up with another error due to a conflict, or something like that, I can't understand:------
Dockerfile:7
--------------------
   5 |     COPY . .
   6 |
   7 | >>> RUN pip install zipline
   8 |
   9 |     CMD ["/bin/bash"]
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install zipline" did not complete successfully: exit code: 1

So my question: Is there any better way of install zipline without having to download python 3.6 or even manage different python envs? 
Reply all
Reply to author
Forward
0 new messages