HinetPy needs Pyhon 3.4 or above. If you’re new to Python, I strongly recommend installing the Anaconda.


To install the latest release/stable version:

pip install HinetPy

To install the latest developing/unstable version:

pip install git+


git clone
cd HinetPy
python install

If you want to uninstall HinetPy, just run:

pip uninstall HinetPy


win32tools is a collection of tools provided by NIED Hi-net to process win32 format data. HinetPy needs catwin32 and win2sac_32. Make sure that catwin32 and win2sac_32 are in your PATH.

Steps to install win32tools:

tar -xvf win32tools.tar.gz
cd win32tools/
cp catwin32.src/catwin32 win2sac.src/win2sac_32 $HOME/bin/

For macOS users, if you fail with an fatal error as below:

s4read_data.c:3:13: fatal error: 'malloc.h' file not found
#include    <malloc.h>
1 error generated.
make[1]: *** [s4read_data.o] Error 1

You need change #include <malloc.h> to #include <stdlib.h> at line 3 of win2sac.src/s4read_data.c.