我刚刚安装了pytesseract并尝试将其导入我的python文件。
我的代码(here is the site I am referring to):
from PIL import Image
import pytesseract
import argparse
import cv2
import os
以下是完整的错误追溯:
Traceback (most recent call last):
File "C:/Users/ROCKSTAR/Downloads/TRIVIA/getAnswers.py", line 6, in <module>
import pytesseract
File "C:\Python34\lib\site-packages\pytesseract\__init__.py", line 1, in <module>
from .pytesseract import (
File "C:\Python34\lib\site-packages\pytesseract\pytesseract.py", line 21, in <module>
numpy_installed = True if find_loader('numpy') is not None else False
File "C:\Python34\Lib\pkgutil.py", line 488, in find_loader
return spec.loader
AttributeError: 'NoneType' object has no attribute 'loader'
Process finished with exit code 1