What is the main cause of fontconfig error in Django application and react framework

I tried to test the code and found that graphviz works well, but it doesn’t work in Django programs. chatgpt told me that I might need to download fontconfig library for Windows and configure environment variables. Can someone tell me how to find the fontconfig file for Windows, or suggest another solution?

There are quite a few articles in places like StackOverflow about “fontconfig error cannot load default config file windows” and this problem has affected other programs, like ffmpeg, which has a text captioning feature. I had trouble understanding the explanations and proposed solutions. Some articles mentioned issues like ‘/’ vs. '' in file paths, and file permissions. I hope someone else can enlighten us further.

Thank you for your advice. I will try to find a solution