#๐Ÿ”’ PyTesseract not being imported into IDLE

20 messages ยท Page 1 of 1 (latest)

dark oak
#

I installed pytesseract and ocr, I tried using it in IDLE but it keeps telling me that it cannot find pytesseract even though I created a path for it

covert yachtBOT
#

@dark oak

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

dark oak
#

I did get this warning while installing

#

after adding that dir to my path, it still doesnt work

umbral belfry
dark oak
#

no, just pip install pytesseract

umbral belfry
#

try with py -m

dark oak
#

so py -m pip install pytesseract?

umbral belfry
#

yes

dark oak
#

ok wait

#

that worked thanks

#

what is the difference between pip install pytesseract and py -m pip install pytesseract?

umbral belfry
#

!dashmpip embed message below explains it better

covert yachtBOT
#
Install packages with `python -m pip`

When trying to install a package via pip, it's recommended to invoke pip as a module: python -m pip install your_package.

Why would we use python -m pip instead of pip?
Invoking pip as a module ensures you know which pip you're using. This is helpful if you have multiple Python versions. You always know which Python version you're installing packages to.

Note
The exact python command you invoke can vary. It may be python3 or py, ensure it's correct for your system.

dark oak
#

oh I see thanks so much

umbral belfry
#

Type !close when you're done with this help thread ๐Ÿ™‚

dark oak
#

!close

covert yachtBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.