You are not logged in.

#1 2013-09-17 06:30:43

mohtasham1983
Member
Registered: 2008-12-15
Posts: 80

Installing pyhdf using virtualenv

I've installed numpy and h5py on my virtualenv using pip. I downloaded pyhdf from:

http://downloads.sourceforge.net/pyscli … 8.3.tar.gz

Then ran:

pip install <path-to-tar.gz>

Then I get this error:

creating build/temp.linux-x86_64-2.7/pyhdf

compile options: '-I/home/yu/virtualenv/icrops/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c'

gcc: pyhdf/hdfext_wrap.c

pyhdf/hdfext_wrap.c:3048:17: fatal error: hdf.h: No such file or directory

 #include "hdf.h"

                 ^

compilation terminated.

pyhdf/hdfext_wrap.c:3048:17: fatal error: hdf.h: No such file or directory

 #include "hdf.h"

                 ^

compilation terminated.

error: Command "gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -I/home/yu/virtualenv/icrops/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c pyhdf/hdfext_wrap.c -o build/temp.linux-x86_64-2.7/pyhdf/hdfext_wrap.o" failed with exit status 1

Any idea what I'm missing here?

Offline

Board footer

Powered by FluxBB