2018-07-09Python 3.6 模块安装“error: Microsoft Visual C++ 14.0 is required...”问题解决

今天在Python 3.6环境中,需要安装tesserocr模块,在安装的过程中遇到了“error: Microsoft Visual C++ 14.0 is required…” 的问题,找到的解决办法:

常规的安装模块包都是通过:

  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文件,下载后进入存储该文件的路径,按照方法一,执行“pip install xxx-1.2.1-cp36-cp36m-win_amd64.whl”,这样就会安装成功。
    但是,上面没有tesserocr模块,最终在https://pypi.org/上找到了tesserocr模块的description,记载了详细的安装方法。

Conda

You can use the channel `simonflueckiger `_ 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
`_ and install them via:
::
> pip install .whl

你可能感兴趣的:(2018-07-09Python 3.6 模块安装“error: Microsoft Visual C++ 14.0 is required...”问题解决)