dlod-openvino / book

《深度学习图像识别技术:基于TensorFlow Object Detection API和Intel OpenVINO》
45 stars 14 forks source link

PIL报错ImportError: The _imagingft C module is not installed #5

Open GanWang opened 3 years ago

GanWang commented 3 years ago

在使用VScode调试object_detection_example_1.py报错The _imagingft C module is not installed Traceback (most recent call last): File "e:\MY_PROGRAME\tf_train\object_detection_example_1.py", line 114, in line_thickness=8) File "E:\MY_PROGRAME\tf_train\models\research\object_detection\utils\visualization_utils.py", line 744, in visualize_boxes_and_labels_on_image_array use_normalized_coordinates=use_normalized_coordinates) File "E:\MY_PROGRAME\tf_train\models\research\object_detection\utils\visualization_utils.py", line 128, in draw_bounding_box_on_image_array use_normalized_coordinates) File "E:\MY_PROGRAME\tf_train\models\research\object_detection\utils\visualization_utils.py", line 175, in draw_bounding_box_on_image font = ImageFont.truetype('arial.ttf', 24) File "D:\Anaconda3\envs\TensorPyTorch\lib\site-packages\PIL\ImageFont.py", line 853, in truetype return freetype(font) File "D:\Anaconda3\envs\TensorPyTorch\lib\site-packages\PIL\ImageFont.py", line 850, in freetype return FreeTypeFont(font, size, index, encoding, layout_engine) File "D:\Anaconda3\envs\TensorPyTorch\lib\site-packages\PIL\ImageFont.py", line 185, in init if core.HAVE_RAQM: File "D:\Anaconda3\envs\TensorPyTorch\lib\site-packages\PIL\ImageFont.py", line 44, in getattr raise ImportError("The _imagingft C module is not installed") ImportError: The _imagingft C module is not installed

但是在pycharm下运行正常???请问是啥原因。 python是3.6版本的