error: Python.h: No such file or directory
When install dlib python module, i get error
1 2 |
ERROR: Failed building wheel for dlib fatal error: Python.h: No such file or directory |
This is because missing python3-dev package. To fix, install
1 |
apt install python3-dev |
If you are using python virtualenv, you will need to recreate the virtualenv after installing dev package.
1 |
virtualenv -p /usr/bin/python3 venv |