#๐ PyTesseract not being imported into IDLE
20 messages ยท Page 1 of 1 (latest)
@dark oak
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.
I did get this warning while installing
after adding that dir to my path, it still doesnt work
Did you use py -m to install it?
no, just pip install pytesseract
try with py -m
so py -m pip install pytesseract?
yes
ok wait
that worked thanks
what is the difference between pip install pytesseract and py -m pip install pytesseract?
!dashmpip embed message below explains it better
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.
oh I see thanks so much
Type !close when you're done with this help thread ๐
!close
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.