Ask Your Question

Failing Building OpenCV from source for Python2.7

asked 2013-12-17 17:10:32 -0600

Halbleiter gravatar image

updated 2013-12-17 17:12:17 -0600


I tried to build OpenCV from source for Python2.7. I followed the instructions from the tutorial, but when I open the OpenCV.sln file as requested in step 14. with Visual Studio the "INSTALL" file needed at step 17. is missing. On my computer the Solution Explorer looks like this.

Solution Explorer

I never used Visual Studio before, so I am thankful for any help.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-12-18 00:53:28 -0600

pyro gravatar image

My solution file misses INSTALL too, not sure behind the reason for this.

But, you can easily complete the installation by going to \opencv\build\lib\Release to find the cv2.pyd file, and copying it to C:\Python27\Lib\site-packages (or your relevant Python installation path).

Note that you must add the path of your OpenCV DLL files to the PATH environment variable if you are building it as a dynamic library.

edit flag offensive delete link more


That worked for me, thank you very much.

Halbleiter gravatar imageHalbleiter ( 2013-12-18 09:01:58 -0600 )edit

answered 2013-12-18 09:30:45 -0600

Alternatively you can run in the build folder:

cmake --build . --target install --config Release
edit flag offensive delete link more

Question Tools


Asked: 2013-12-17 17:10:32 -0600

Seen: 312 times

Last updated: Dec 18 '13