'how to convert .pyx into .c file in linux?

I've just begun to learn cython, and I have not found any good command or instruction by googling. I've tried those commands:

gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing \                                                                                           1 ⨯
      -I/usr/include/python3.5 -o rrrattack.cpython-39-x86_64-linux-gnu.so rrrattack.c
cythonize -a -i yourmod.pyx

cythonize gives me .so file, gcc returns error ""python.h" does not exists". What I do not such as a way?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source