2018-07-09Python 3.6 模塊安裝“error: Microsoft Visual C++ 14.0 is required...”問題解決

今天在Python 3.6環(huán)境中,需要安裝tesserocr模塊,在安裝的過程中遇到了“error: Microsoft Visual C++ 14.0 is required…” 的問題,找到的解決辦法:

常規(guī)的安裝模塊包都是通過:

  1. pip install xxx
  2. conda install xxx
  3. github下載并解壓:
    wget https://github.com/UB-Mannheim/tesseract/archive/3.05.02.zip
    unzip 解壓
    rm 壓縮包
    cd 目錄
    安裝依賴包:
    pip install -r requirements.txt
    安裝模塊
    python setup.py install
    還有一種方法:
    https://www.lfd.uci.edu/~gohlke/pythonlibs/ 頁面下載所需的模塊的whl文件,下載后進(jìn)入存儲該文件的路徑,按照方法一,執(zhí)行“pip install xxx-1.2.1-cp36-cp36m-win_amd64.whl”,這樣就會安裝成功。
    但是,上面沒有tesserocr模塊,最終在https://pypi.org/上找到了tesserocr模塊的description,記載了詳細(xì)的安裝方法。

Conda

You can use the channel `simonflueckiger <https://anaconda.org/simonflueckiger/tesserocr>`_ to install from Conda:
::
> conda install -c simonflueckiger tesserocr

or to get **tesserocr** compiled with **tesseract 4.0.0**:
::
> conda install -c simonflueckiger/label/tesseract-4.0.0-master tesserocr

pip

Download the wheel file corresponding to your Windows platform and 
Python installation from `simonflueckiger/tesserocr-windows_build/releases
<https://github.com/simonflueckiger/tesserocr-windows_build/releases>`_ and install them via:
::
> pip install <package_name>.whl
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容