I downloaded openCV from github and built it from source because I need a very specific release from openCV ie openCV2.4 .
I am now trying to run some opensource code. When trying to run one of their provided samples which is written in Python, I get “No module named cv2”. (Their code runs fine on my laptop)
I therefor tried
sudo pip install opencv-python.
But this returns
Could not find a version that satisfies the requirement opencv-python (from version: ) No match distribution for opencv-python
I also tried turning it the other way around ie
sudo pip install python-opencv, but that returns exactly the same.
What can I do to solve the “No module named cv2” issue?
I also tried this straight in the command line
$python >>>>import cv2
which returns no module named cv2 and
$python3 >>>>import cv2
I am however totally able to compile my C++ code. Which means the installation was somehow successful, but something fails on the Python side.