Running pygal on Jupyter and Windows 10 Python 3.9 issue
ralphcastro504 opened this issue · 0 comments
ralphcastro504 commented
When I ran the a simple script:
import pygal
import os
import webbrowser
bar_chart = pygal.Bar()
bar_chart.title = "Pet populatioon by Animal per 100 households"
bar_chart.add("dogs", 41)
The output of the pygal object (chart) was that it could not find any of the libcairo.dll, libcairo2.dll and other dlls which are not on my mind right now.
Took some time to figure the reason. But it was all related to GTK. I installed GTK for windows 10 then I had to add to PATH the mysys64 directory to be exact the following C:\msys64\mingw64\bin where libcairo dlls where located.