4 Mar 2011 21:00
Re: Missing Python.h
Hector <hector1618 <at> gmail.com>
2011-03-04 20:00:37 GMT
2011-03-04 20:00:37 GMT
On Wed, Jan 19, 2011 at 10:01 AM, Robert Bradshaw <robertwb <at> math.washington.edu> wrote:
On Tue, Jan 18, 2011 at 7:44 PM, Hector troy <hector1618 <at> gmail.com> wrote:For someone just getting started, I would suggest using distuitls via
> Hello everyone,
> I am a newbie to Cython and tried to run first program with Cython. It
> converted .pyx file into .c file but when I tried to run .c file with gcc it
> gave me following error.
>
> $hector <at> hector:~/Desktop/Programs/Cython$ time gcc test1.c
> test1.c:4: fatal error: Python.h: No such file or directory
> compilation terminated.
>
> I tried to update Python2.6-dev but its already in the newest form.
> Any help regarding the same will be very helpful.
a setup.py file or using pyximport. There are a slew of options that
you need to pass gcc, many of which depend on your platform and/or how
Python was compiled.
- Robert
Hi Robert,
I tried and made setup.py files and can run my code with it. It is nice but kind of irritating to write setup.py files for everything.And I can't look time improvement with all imports.
Can you please give me some hint or reference where to start looking for missing Python.h or for starting with gcc?
--
-Regards
Hector
Whenever you think you can or you can't, in either way you are right.
RSS Feed