Technical Requirements
We installed Zipline Reloaded in Chapter 5, Build Alpha Factors for Stock Portfolios. In case you missed it, follow along with the instructions here. The steps to install Zipline Reloaded differ depending on your operating system.
For Windows, Unix/Linux, and Mac Intel users
If you’re running on an Intel x86 chip, you can use conda
:
conda install -c conda-forge zipline-reloaded pyfolio-reloaded alphalens-reloaded -y
For Mac M1/M2 users
If you have a Mac with an M1 or M2 chip, you need to install some dependencies first. The easiest way is to use Homebrew (https://brew.sh).
Install the dependencies with Homebrew:
brew install freetype pkg-config gcc openssl hdf5 ta-lib
Install the Python dependencies with conda
:
conda install -c conda-forge pytables h5py -y
Install the Zipline Reloaded ecosystem:
pip install zipline-reloaded pyfolio-reloaded alphalens-reloaded
In this example, we’ll use the free data bundle provided...