idies / pyJHTDB

Python wrapper for the Johns Hopkins turbulence database library
Apache License 2.0
100 stars 47 forks source link

Installation with Anaconda #19

Closed alexlib closed 5 years ago

alexlib commented 6 years ago

I installed pyJHTDB on Ubuntu 16.04 with Anaconda Python 3.6 (it includes h5py, numpy, sympy and scipy by default). If it's of interest for anyone, the steps are:

  1. Download Anaconda https://www.anaconda.com/download/#linux
  2. Install using bash Anaconda-latest-Linux-x86_64.sh
  3. Install pyJHTDB using pip and HDF5 library that is included in Anaconda (a part of h5py): pip install pyJHTDB --global-option=build_ext --global-option="-I/home/alex/anaconda3/include" note the path to the anaconda3 directory, replace it with your path.
erichson commented 6 years ago

@alexlib thanks for sharing. This did the trick for me!

erichson commented 6 years ago

Well, it turned out that the pip version is pretty old and misses some import functions like lTDB.add_token(auth_token). Anyway, python setup.py install worked in combination with anaconda after setting HDF5_ON = False. There is certainly a better way... but this hack does the trick for me.

Best, Ben

rohitravoori commented 6 years ago

The pip package has been updated and can be installed with a simple pip install pyJHTDB now.

petebachant commented 6 years ago

What do we need to do to the repo to allow pip install . to find HDF5 without the additional arguments running setup.py?