繁体   English   中英

在Linux中,如何为python 2.7而不是python 3安装pytesseract?

[英]In linux, how to install pytesseract for python 2.7, not for python 3?

我想在python2.7 / dist-packages中安装pytesseract。 我尝试了“ pip install pytesseract”。 但它安装在python3 / dist-packages中。 请帮我。

pip是执行pip包的小脚本。 您可以使用-m选项,使用所选的Python自己执行此操作。 假设您的python 2.7可执行文件是python ,则可以

python -m pip install pytesseract

要么

sudo -H python -m pip install pytesseract

如果要安装到系统目录中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM