I am a python and ubuntu noob and everytime I write a program, I get an error like
Traceback (most recent call last):
File "demo.py", line 2, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'
I have opencv installed and it exists inside the site-packages directory inside the python directory, and I can use it if I go to that directory. How can I make it so I can run a program in my home directory without getting the module not found error?