guanyichen/labelme2voc

ModuleNotFoundError: No module named 'PIL'

Opened this issue · 0 comments

我在下载您的转换脚本,转换VOC文件执行代码出现以下问题:
(labelme) X:\学习 Files\视觉\项目8 标注文件格式转换\lab-90\data_2>labelme2voc.py data_annotated data_dataset_voc --labels labels.txt
Traceback (most recent call last):
File "X:\学习 Files\视觉\项目8 标注文件格式转换\lab-90\data_2\labelme2voc.py", line 11, in
import imgviz
File "C:\Users\hanhiting.conda\envs\labelme\lib\site-packages\imgviz_init_.py", line 5, in
from . import io as io
File "C:\Users\hanhiting.conda\envs\labelme\lib\site-packages\imgviz_io_init
.py", line 3, in
from .pyglet import pyglet_imshow
File "C:\Users\hanhiting.conda\envs\labelme\lib\site-packages\imgviz_io_pyglet_init
.py", line 4, in
from .pyglet_imshow import pyglet_imshow
File "C:\Users\hanhiting.conda\envs\labelme\lib\site-packages\imgviz_io_pyglet\pyglet_imshow.py", line 6, in
from ... import utils
File "C:\Users\hanhiting.conda\envs\labelme\lib\site-packages\imgviz\utils.py", line 2, in
import PIL.Image
ModuleNotFoundError: No module named 'PIL'