加载顺序错了,改了半天都没改对,谁能帮我看看

import pytesseract as ts
from wand.image import Image
from PIL import Image as PI
import pyocr
import pyocr.builders
import io
import glob
import re
import os
import shutil

AttributeError: type object 'Image' has no attribute 'open'

你要先确认你用的库,需要处理什么内容。 逻辑先不要搞混
from wand.image import Image 这个Image 没有open 方法

img

from PIL import Image 这个Image 有 open 方法

img