Getting the error - AttributeError: 'TheanoConfigParser' object has no attribute 'gcc__cxxflags' while runnin the code -
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import warnings
warnings.filterwarnings("ignore")
import pyfolio as pf
Hello Rajeev,
This error belongs to pyfolio. pyfolio uses PyMC3 and Theano to generate Bayesian tearsheets.
You can try uninstalling theano, theano-pymc, pymc3 and reinstalling pymc3. You can do this by running the following commands in the anaconda prompt
python3 -m pip uninstall theano
python3 -m pip uninstall theano-pymc
python3 -m pip uninstall pymc3
python3 -m pip install pymc3
This should resolve the issue. If the issue persists, you can try 'pyfolio-reloaded'. You can use the command 'python3 -m pip install pyfolio-reloaded==0.9.4' for installation.
Hope this helps!
Thanks
Hi Varun,
Thanks for sharing the solution, but after following the steps, I am still getting the error below -
AttributeError: 'TheanoConfigParser' object has no attribute 'gcc__cxxflags' Any advice on how to resolve this?
Hello Mr.Rajeev,
If the code belongs to the Quantra course, you can create the Quantra environment in your system and try running the code. This should solve the issue. You can follow this link for a step-by-step tutorial on setting up the Quantra environment.
If the error persists, please share the notebook name and course details for further assistance. Looking forward.
Thank you