I have this code:
import CairoSVG
but I get this:
"C:\Program Files\Python36\python.exe" D:/PyCharmProjects/Exyz/Bla.py
Traceback (most recent call last):
File "D:/PyCharmProjects/xyz/Bla.py", line 1, in <module>
import CairoSVG
ModuleNotFoundError: No module named 'CairoSVG'
Process finished with exit code 1
I followed this and the package CairoSVG is definitely installed. I also did:
Go to File > Invalidate caches/restart and click Invalidate and Restart to apply changes and restart PyCharm.
What else could be wrong?
Using
import cairosvg
instead of
import CairoSVG
should fix your problem.
Source : http://cairosvg.org/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With