Error in running F2Py

When I tried the sample code in : http://www.scipy.org/F2py

I got the following error:

/tmp/tmpHNH55t/src.linux-x86_64-2.6/fortranobject.h:7:20: error: Python.h: No such file or directory

It turns out I needed to install python-dev in my Ubuntu to resolve this problem. After I install python-dev, f2py works well.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: