I use Python 3 and unofficial PIL module. My code works fine. But after using cx_freeze I get exception "_imaging c module is not installed".
What can I do with this problem? All solutions that I found were about Python 2.X and Linux OS. I need the solution for Windows and Python 3.
Finally, I solved the problem. _imagingtk needs ImageTk imported first. So this code works:
from PIL import ImageTk
from PIL import _imagingtk
And there is no more problem with cx_freeze. But really I don't understand what the real reason of this bug was. I just guessed the solution.