python_imagesearch is not detected

Viewed 22

i want to use the module "python_imagesearch" i install "pip3 install python-imagesearch" and get "Successfully installed python-imagesearch-1.2.2"

but when i use the syntax:

from python_imagesearch.imagesearch import imagesearch
pos = imagesearch("Test.png")
if pos[0] != -1:
    print("position : ", pos[0], pos[1])
else:
    print("image not found")

litterally the syntax from the documentation. I got the Traceback :

  File "xxx", line 4, in <module>
    from python_imagesearch.imagesearch import imagesearch
ModuleNotFoundError: No module named 'python_imagesearch'

Do anybody know how can i repair this?

Thanks

0 Answers
Related