Volatility-Trading-Strategies-Capstone error

Volatility-Trading-Strategies-Capstone
Python 3.12.7
pd.version’2.2.2’

import data_modules.quantra_analytics as qa

ModuleNotFoundError: No module named ‘empyrical’

OSError: ‘seaborn-darkgrid’ is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in style.available)

Hi Durdu,

  1. ModuleNotFoundError: No module named ‘empyrical’

    You can install empyrical using the following command:
    pip install empyrical-reloaded

  2. OSError: ‘seaborn-darkgrid’ is not a valid package style

    Change plt.style.use('seaborn-darkgrid') to plt.style.use('seaborn-v0_8-darkgrid')

These changes should resolve the errors. Please let us know if you still face any issues.