pycharm ImportError cannot import name Image from PIL問題解決方案

當pycharm報錯: ImportError: cannot import name 'Image' from 'PIL' 的時候大多數情況下是由於PIL版本和當前python的版本出現了不兼容導致的,如何解決這個問題? 卸載原來的版本:打開CMD輸入pip uninstall pillow 注意需要手動輸入y來確認卸載! 重新下載:pip install pillow 重新安裝後就能正常使用了
相關文章
相關標籤/搜索