I want to host my pc as a local server for a firebase application. But when executing "moduleNotFoundError". Packages installed:
pip3 install firebase-admin opencv-contrib-python opencv-python
I uninstalled opencv and renstalled throught: opencv-contrib-python and opencv-python. tried both pip install and pip3 install without success.
When i run script in Visual Studio everything works fine, but when i try to run the script from terminal : python main.py or python3 main.py i get following error:
Traceback (most recent call last):
  File "analyzer/script.py", line 4, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'
Tried to make a new installation in a virtual enviroment but results are the same.
Image of installed package and error connected to it
Thanks for help with sys.path.append. Though this results in
ERROR:root:Failure. During fetching photos was occurred an exception. Additional info: 'utf-8' codec can't decode byte 0xe5 in position 29: invalid continuation byte
And results of print (sys.stdin.encoding) is utf8

 
     
    