How do I add PIL to PyDev in Eclipse, so i could import it and use it in my project?

前端 未结 2 474
说谎
说谎 2021-02-13 14:00

I am trying to work with PIL in my project but the pydev can\'t seem to find it in my project. First of all I can see it when I enter the python shell, I can import it and I see

2条回答
  •  粉色の甜心
    2021-02-13 14:31

    Try to go to Window -> Preferences -> Pydev-> Interpreter -> Python Interpreter -> Forced Builtins tab. Then add a PIL entry and apply. I've had the same unresolved import error when tried to import from this particular package (other packages worked fine), and found this information which finally helped me.

提交回复
热议问题