Anaconda python, PIL and imagingtk

后端 未结 3 1740
南旧
南旧 2020-12-31 19:47

Although this is a reasonably well documented problem, I can\'t find a solution.

I cannot import PIL and ImageTK.

Minimal example:

import Tk         


        
相关标签:
3条回答
  • 2020-12-31 20:06

    Try to verify the extension of the image, i got the same problem, and when i modified the extension the script worked

    0 讨论(0)
  • 2020-12-31 20:25

    Thanks for bringing this up. The ImageTk module is an extra extension that is not part of the default installation of Pillow.

    This issue is long-standing: https://github.com/ContinuumIO/anaconda-issues/issues/150

    We (Continuum) will investigate adding this module to our build process.

    0 讨论(0)
  • 2020-12-31 20:29

    After uninstalling pillow and PIL:

    pip install image
    

    Fixed this issue.

    0 讨论(0)
提交回复
热议问题