import os
from PIL import Imageos.chdir(r"D:\jupyter\image_convert")
os.getcwd()
file os.listdir(r"D:\jupyter\image_convert")for f in file:img Image.open(f)img.load()f f.split(".")[0]img.save(f".jpg")
目录 问题1:No module named PIL
问题2:error:command errored out with exit status 1:..... 问题1:No module named PIL
在转换onnx模型序列化为.trt模型时,提示错误"No module named PIL",网上查了下是…