程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Error dlopen: symbol not found in flat namespace when importing testerocr from Python

編輯:Python

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


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved