I have been trying to run the InVEST “Annual Water Yield” model from Python (Google Colab) as part of the sensitivity analysis and calibration of the model. The error as attached pops up. The code used was generated from the InVEST software itself.
Unable to run the python code for “Annual Water Yield” from Google Colab
“could not find a version that satisfies the requirement natcap” message pops up
I would like to know what version of python needs to be configured to be compatible if the files provided by the API can be used normally. If I use 3.9 and 3.11, it is not fully compatible
natcap.invest is not currently available for Python 3.12. The final green message in your console indicates that the latest version of `natcap.invest (3.14.1) requires Python less than 3.12. In other words, Python 3.11.x will work.
I recommend creating a new virtual environment with conda and specify python=3.11. Then install natcap.invest.