logo
Loading...

pip install pytesseract出現錯誤 - Cupoy

我直接在筆記本內run!pip install pytesseract但是出現這個錯誤訊息請問要如何...

pycrawler,pycrawler-d32

pip install pytesseract出現錯誤

2020/01/14 上午 01:15
Python網路爬蟲討論版
Roy Hwang
觀看數:28
回答數:3
收藏數:0
pycrawler
pycrawler-d32

我直接在筆記本內run

!pip install pytesseract

但是出現這個錯誤訊息

請問要如何解決?

回答列表

  • 2020/01/14 上午 01:37
    張維元 (WeiYuan)
    贊同數:2
    不贊同數:0
    留言數:0

    嗨,你可以 執行再看看 !pip list,看一下是否有安裝成功。

  • 2020/01/14 上午 09:34
    陳冠樺
    贊同數:2
    不贊同數:0
    留言數:2

    我也遇到相同問題,參考老師給的連結,https://cloud.tencent.com/developer/article/1187805

    除了pip install pytesseract外還要下載Tesseract-ORC,

    Tesseract-ORC 默认是没有指定安装路径。需要手动指定本地 Tesseract 的路径。

    ```user_tesseract_cmd ='C:/Program Files (x86)/Tesseract-OCR/tesseract.exe'```

    執行之後就可以了

  • 2020/01/16 下午 01:11
    張維元 (WeiYuan)
    贊同數:2
    不贊同數:0
    留言數:0

    補充一下 冠樺 講的是對的(投影片也有提到),有兩個東西要安裝:


    1. Tesseract-ORC 工具(這是裝在電腦上,跟 Python 無關的辨識工具)

    2. pytesseract (這是 Python 套件,用來在 Python 中操作 Tesseract-ORC )