I haven’t done a lot with python so I always have trouble figuring out how to install packages. Most samples I look at have something like this:
import cv2
import pytesseract
Silly me things this should work to add the libraries to my virtual environment:
pip install cv2 pytesseract
But of course that doesn’t work since ‘cv2’ isn’t really a pip package. So I have to pause and do some google searching to eventually find the actual name of the package so I can install them:
pip install opencv-python pytesseract
Is there some reason for this inconsistency? Is there a repository I can head to when I have a statement like ‘import cv2’ that will quickly tell me the package to install? This seems to happen quite a bit where the names differ from what is imported.