Backtrader official Chinese documentation: Part II Installation

This document refers to the backtrader official document, which is a complete Chinese translation of the official document , and can be used as a backtrader Chinese tutorial, backtrader Chinese reference manual, backtrader Chinese development manual, and backtrader introductory materials.

Backtrader installation

Installation Notes

Backtrader is self-contained and has no external dependencies (unless you want to use plotting related features).

You only need to have any version of python installed locally:

  • Python 2.7 (corresponding to pip)
  • Python 3.2/3.3/3.4/3.5 (corresponding to pip)
  • Matplotlib >= 1.4.1 (need to be installed if plotting is required)

The author recommends not to use a high version of python, Matplotlib version is too high, there is incompatibility. It is recommended to use python3.8 at the highest.

install via pip

pip install backtrader
# 或者 pip install backtrader[plotting]

Source code installation (not recommended by the translator)

After cloning or downloading the code locally, copy the backtrader directory under the backtrader folder
to your own project, and remember that matplotlib is required for drawing. The reason why it is not recommended is that Xiaobai will encounter various strange environmental problems.

Guess you like

Origin blog.csdn.net/windanchaos/article/details/130945698