No Module named PIL

前端 未结 7 1612
小蘑菇
小蘑菇 2021-02-01 03:51

I know PIL is deprecated, so I installed Pillow instead, and for backward compatibility reason, Pillow is still using PIL as its module name. Here\'s my pip freeze look

7条回答
  •  自闭症患者
    2021-02-01 03:54

    This solution is for pip version 20 and using PyCharm. I'd upgrade pip to version 20.0.2 as pip suggested but I had to get back to version 19

    python -m pip install pip==19.3.1
    

    I also installed Pillow from command line

    pip install Pillow
    

    And finally installed Pillow inside PyCharm on Settings -> Project:your-project-name -> Project Interpreter, clicked on + button and installed Pillow.

提交回复
热议问题