I am working with python3 and Ubuntu 18.04 and trying to install a python package named "pyimagesearch". it is not possible to install using pip command or apt-get install. I Googled to see how to install it but all the hits showed this link:
https://www.pyimagesearch.com/2018/05/28/ubuntu-18-04-how-to-install-opencv/
I followed all the steps without any error. to test that as mentioned in this link, I did :
import cv2
and it worked. then I tried:
import pyimagesearch
but still I am getting this error:
>>> import pyimagesearch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pyimagesearch'
Do you know how to install this package?
"pyimagesearch" is not any package that you can import. It's a folder in the source code (you need to download the source code from pyimageseach's tutorial page). That folder has a file.py which contains a well-defined class of your interest.
from pyimageseach.file import class
"import pyimagesearch" won't work.
Importing class from another file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With