FinRL Installation

Setup
Installation
Reinforcement Learning
Author
Published

February 16, 2025

About FinRL

FinRL is a library that provides a unified framework for training, evaluating, and deploying deep reinforcement learning models (DRL) for finance. It is built on top of the popular deep learning library PyTorch. It provides a set of tools for building and training DRL models, as well as a set of pre-built models for common financial tasks.

Installation

For Mac:-

  1. Make sure you have Anaconda installed on your system. To check, run conda --version in your terminal. If you don’t have Anaconda installed, you can download it from here.
  2. Install Homebrew if you don’t have it installed. You can install it by running /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" in your terminal or download it from here.
  3. Install OpenAI baselines by running brew install cmake openmpi in your terminal.
  4. Create a new conda environment with python (<3.12, >=3.11) by running conda create -n finrl python=3.11 in your terminal and activate it by running conda activate finrl.
  5. Install system dependencies by running conda install swig in your terminal.
  6. Finally, install FinRL by running pip install git+https://github.com/AI4Finance-Foundation/FinRL.git.

For Windows:-

To be added.

For Linux:-

To be added.