在使用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
在使用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版本的