文章目录 1、问题出现 2、原因分析 3、解决方法 1、问题出现 环境:Mac、Python3.9.6。 Python: import pytesseract from PIL import Image #用于读取图片 image = Image.open("123.png") result = pytesseract.image_to_string(image) print(result1) 使用pytesseract.image_to_string()时报错ÿ