几年前我用chocolatey安装了tesseract,然后就忘了。
现在我有一个问题,当我在cmd中输入tesseract命令时,它使用这个tesseract而不是我单独安装的新tesseract。
与chocolatey一起安装的那个问题是它过时了,我无法更新或卸载它。
choco uninstall tesseract
导致:
Chocolatey detected you are not running from an elevated command shell
然后问我是否要继续当我继续时,然后:
tesseract is not installed. Cannot uninstall a non-existent package.
但我知道它至少与tesseract cmd命令链接在一起,即使它没有安装。
如何使windows/cmd/powershell使用单独的tesseract安装而不是chocolatey安装?
这就是我想知道的,我也想知道如何从chocolatey卸载tesseract,但这不是获得接受答案所必需的
我知道问题出在哪里了。
我列出了所有安装了chocolatey的软件包。
tesseract没有列出,但image2text(或类似的东西,我不记得具体是什么),然后我记得这是我使用的ocr。我卸载了它,tesseract也从cmd中消失了。所以看起来image2text也安装了tesseract并感染了所有的tesseract命令