Where is cv2.so? Is it now called something else? [closed]
I have just completed a build of OpenCV. Make file completed successfully. However, I went looking for cv2.so in /usr/local/lib/python2.7/site-packages and found nothing at all. Having done a global search for cv2.so I realize that as named, it does not exist. is there another name that I should be looking for?
Thank You Tom
Have you checked this and this? If yes, then try looking at the following search result
please edit your question and add the cmake output. maybe it did not build the python bindings at all ? maybe only for python3 ?
Either @berak is right, and CMAKE did not find the necessary components to build OpenCV's python API, which seems correct since a global search did not retrieve anything. Nevertheless, you do not have a
make install
step in your approach, which will not make it globally accessible through Python.Actually when running
sudo make install
it tells what it copies to the general locations. If it does not mention a copy ofcv2.so
, you are stuck at the building process. Building OpenCV for python is optional, not manditory, hence it will not fail.