ModuleNotFoundError:没有名为“CairoSVG”的模块

2024-05-20 21:28:39 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下代码:

import CairoSVG 

但我明白了:

"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

我遵循了this,并且CairoSVG包肯定已经安装好了。我还做了:

Go to File > Invalidate caches/restart and click Invalidate and Restart to apply changes and restart PyCharm.

还有什么不对劲


Tags: andto代码pyimportfilesprogramfile