python ModuleNotFoundError: No module named ‘frontend‘

今天在pdf转换为图片的时候,出现了下面的错误:

➜  OCR_table python pdf_to_image.py      
Traceback (most recent call last):
  File "pdf_to_image.py", line 1, in 
    import sys, fitz
  File "/home/eric/anaconda3/lib/python3.6/site-packages/fitz/__init__.py", line 1, in 
    from frontend import *
ModuleNotFoundError: No module named 'frontend'

解决方法

pip install PyMuPDF

参考文献

[1].ModuleNotFoundError: No module named 'frontend'. https://stackoverflow.com/questions/56467667/modulenotfounderror-no-module-named-frontend

你可能感兴趣的:(PyMuPDF)