I am trying to compile c
from python
.
There shows the following errors after I executing the following commands:
-Wall -I/usr/include/python3.5/config-3.5m-x86_64-linux-gnu/libpython3.5m.a -lpython35 -o prime_numbers_2 prime_numbers_2.c
prime_numbers_2.c:11:20: fatal error: Python.h: No Such File or
directory compilation terminated.
I also search in the directory /usr/lib
with the following command:
find . -name Python.h
but there is no Python.h
in that directory.
How can I fix these problems? Should I reinstall Python3.5.2?
-l
and-L
options. Check if they exist and that-l
points to a regular file and-L
to a directory. – Melebius Aug 31 '16 at 13:09