ManivannanMurugavel / YOLO-Annotation-Tool

This is for create the training set of image to YOLO
MIT License
80 stars 58 forks source link

No Module named IPL #5

Open edward2306 opened 5 years ago

edward2306 commented 5 years ago

I still clone this repository. When i want to run "python main.py". But, i have some issues like that :

Traceback (most recent call last): File "main.py", line 12, in from PIL import Image, ImageTk ImportError: No module named PIL

anyone can help me about this problem? thank you

ManivannanScience commented 5 years ago

Hi @edward2306 , Please install PIL and Tkinter python package. I mentioned below command. Python 2: For PIL: sudo pip install Pillow For Tkinter sudo apt-get install python-tk

Python 3: For PIL: sudo pip3 install Pillow For Tkinter sudo apt-get install python3-tk

felipecpc commented 5 years ago

For the imports you can do something like this:

try:
    #Python 2
    from Tkinter import * 
    import tkMessageBox
except ImportError:
    #Python 3
    from tkinter import * 
    import tkinter.messagebox