module 'Image' has no attribute 'Image'

使用image_to_string(image)時出現如下錯誤: module ‘Image’ has no attribute ‘Image’ 單獨運行一下image_to_string函數發現如下問題: 打開pytesseract.py文件,找到如下語句: try: import Image except ImportError: from PIL import Image 將上述語句調換一下
相關文章
相關標籤/搜索