Skip to content Skip to sidebar Skip to footer

Compile OpenCV - Python.h - Can't Find Python.h

Im trying compile OpenCV 3.1.0 on a EC2 instance with ubuntu 14.04. But I log this error: Scanning dependencies of target opencv_python2 [100%] Building CXX object modules/pyth

Solution 1:

sudo apt-get install python-dev

or

sudo apt-get install python3-dev

install and try again compile

fatal error: Python.h: No such file or directory


Post a Comment for "Compile OpenCV - Python.h - Can't Find Python.h"