You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current cmake configuration does not search for the correct python site-packages directory and install the bindings in PREFIX/share/python, so it can't be loaded by the interpreter as is.
One solution would be to look for site-packages directory via python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
The right way is probably to use python itself to build & install the bindings.
The text was updated successfully, but these errors were encountered:
OpenCV python bindings would be a good (not simple) example with cmake
If you hope for a larger audience on Python a packaging for Pypi would help https://pypi.python.org/pypi/opencv-python with prebuilt binaries and all to ship the c++ library with Python but it's a long road ahead :)
The current cmake configuration does not search for the correct python site-packages directory and install the bindings in PREFIX/share/python, so it can't be loaded by the interpreter as is.
One solution would be to look for site-packages directory via
python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
The right way is probably to use python itself to build & install the bindings.
The text was updated successfully, but these errors were encountered: