Recently in to see python3 Web crawler development practice , When configuring the environment, it is stuck in tesserocr Import of Library .tesseract and tesserocr pillow All installed successfully , Then use the terminal to test tesseract Also a success . Just at last python in import tesserocr Always reporting mistakes . The computer is MacBook Air2020 m1,12.4, Running environment anaconda
The code and output results are as follows
import tesserocrTraceback (most recent call last): File "/var/folders/m4/cbbfpg6553qbzgc0rdvsmt300000gn/T/ipykernel_19445/2628531317.py", line 1, in <module> import tesserocrImportError: dlopen(/Users/chenwenze/opt/anaconda3/lib/python3.9/site-packages/tesserocr.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '__ZN9tesseract11TessBaseAPID1Ev'
My solution ideas and tried methods
Tried a few random ways but failed to solve the problem
What I want to achieve
Successful import tesserocr Don't complain