smousavi05 / EQTransformer

EQTransformer, a python package for earthquake signal detection and phase picking using AI.
https://rebrand.ly/EQT-documentations
MIT License
311 stars 150 forks source link

resolve dependency conflict (tensorflow vs. numpy) #107

Closed ostueker closed 2 years ago

ostueker commented 2 years ago

Tensorflow < 2.7.0 is incompatible with numpy 1.20.0 and newer. Therefore I'm setting the numpy version to numpy~=1.19.2 (i.e. any version 1.19.x but at least 1.19.2) as this is the version used in EQTransformerviaGoogleColab.ipynb.

Also set TF to tensorflow~=2.5.0 so that it can be used with any 2.5.x version.

Also add requirements.txt with the same definitions, so that dependencies can be installed with:

pip install -r requirements.txt

Addresses: #99

smousavi05 commented 2 years ago

Thank you @ostueker