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?
import cairosvg
而不是import CairoSVG
应该可以解决您的问题,来源: http : import CairoSVG
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.