在执行 pip3 install tesserocr pillow 时,控制台报错,具体不记得了,提示大概如下:
you'll install idmb 2.7,which is incompatable with tesserocr
还提示需要
Microsoft Visual C++ 14.o is requeired
等等
使用 conda install tesserocr pillow 时,也报错,
$ conda install tesserocr pillow
Solving environment: ...working... failed
PackagesNotFoundError: The following packages are not available from current cha nnels:
- mitmproxy
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/win-64
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/pro/win-64
- https://repo.anaconda.com/pkgs/pro/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
换了其他的安装方式都不行,后来偶然发现了一个较为有可能解决的方案解决了我的问题,代码行如下:
conda install -c simonflueckiger tesserocr pillow
代码执行时报抄不到c盘下面的anaconda,但是我安装的是在f盘,应该是环境配置的问题,于是重新配置了环境配置,将两个path都添加了一样的路径,终于可以执行成功了。