Skip to content

Instantly share code, notes, and snippets.

@eightysteele
Created November 30, 2011 04:59
Show Gist options
  • Save eightysteele/1408088 to your computer and use it in GitHub Desktop.
Save eightysteele/1408088 to your computer and use it in GitHub Desktop.
Install pyhdf on Ubuntu Oneric
wget -c http://ufpr.dl.sourceforge.net/project/pysclint/pyhdf/0.8.3/pyhdf-0.8.3.tar.gz
tar zxvf pyhdf-0.8.3.tar.gz
cd pyhdf-0.8.3
sudo apt-get install libhdf4-dev
sudo apt-get install python2.6-dev
cd pyhdf
sudo apt-get install swig
swig -python hdfext.i
cd ..
export INCLUDE_DIRS=/usr/include/hdf
export LIBRARY_DIRS=/usr/lib
export NOSZIP=1
python setup.py install
@albhasan
Copy link

+1

@IdrissMohamed
Copy link

IdrissMohamed commented Apr 26, 2018

getting an error when I run this command (python setup.py install) but rest of the code was running fine.

hduser@ncistudent-VirtualBox:~/pyhdf-0.8.3$ python setup.py install
Traceback (most recent call last):
File "setup.py", line 9, in
from numpy.distutils.core import setup, Extension
ImportError: No module named numpy.distutils.core

any help, please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment