1
我有這樣的代碼:PyCharm ModuleNotFoundError
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.
還有什麼可能是錯誤的?
蟒蛇真的很挑剔模塊外殼 –