简体   繁体   中英

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

I'd like to install pytesseract in python2.7/dist-packages. I tried "pip install pytesseract". But it is installed in python3/dist-packages. Please help me.

pip is a small script that executes the pip package. You can do that yourself with the python of your choice using the -m option. Assuming your python 2.7 executable is python , you can

python -m pip install pytesseract

or

sudo -H python -m pip install pytesseract

if you want to install into system directories.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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