I tried pip install "pygeoprocessing<2.0"
but I got this error,
Collecting Shapely!=1.7.0,>=1.6.4
Using cached Shapely-1.6.4.post2.tar.gz (225 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\isabella\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\isabella\\AppData\\Local\\Temp\\pip-install-gs1ua301\\Shapely\\setup.py'"'"'; _file='"'"'C:\\Users\\isabella\\AppData\\Local\\Temp\\pip-install-gs1ua301\\Shapely\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file_, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\isabella\AppData\Local\Temp\pip-pip-egg-info-lapbutzs'
cwd: C:\Users\isabella\AppData\Local\Temp\pip-install-gs1ua301\Shapely\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\isabella\AppData\Local\Temp\pip-install-gs1ua301\Shapely\setup.py", line 80, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "C:\Users\isabella\AppData\Local\Temp\pip-install-gs1ua301\Shapely\shapely\_buildcfg.py", line 200, in <module>
lgeos = CDLL("geos_c.dll")
File "c:\users\isabella\appdata\local\programs\python\python38\lib\ctypes\_init.py", line 373, in __init_
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
it appear that every version below 2.0 are incompatible with python 3.8.2. I downloaded the wheel file of the 2.0 on pypi.org and installed it, and I got this
C:\Users\isabella>pip install C:\Users\isabella\Downloads\pygeoprocessing-2.0.0-cp38-cp38-win_amd64.whl
Processing c:\users\isabella\downloads\pygeoprocessing-2.0.0-cp38-cp38-win_amd64.whl
Requirement already satisfied: Cython in c:\users\isabella\appdata\local\programs\python\python38\lib\site-packages (from pygeoprocessing==2.0.0) (0.29.19)
Requirement already satisfied: Rtree>=0.8.3 in c:\users\isabella\appdata\local\programs\python\python38\lib\site-packages (from pygeoprocessing==2.0.0) (0.9.4)
Requirement already satisfied: scipy!=0.19.1,>=0.14.1 in c:\users\isabella\appdata\local\programs\python\python38\lib\site-packages (from pygeoprocessing==2.0.0) (1.4.1)
Requirement already satisfied: numpy>=1.10.1 in c:\users\isabella\appdata\local\programs\python\python38\lib\site-packages (from pygeoprocessing==2.0.0) (1.18.4)
Requirement already satisfied: Shapely>=1.6.4 in c:\users\isabella\appdata\local\programs\python\python38\lib\site-packages (from pygeoprocessing==2.0.0) (1.7.0)
Requirement already satisfied: GDAL>=3.0.4 in c:\users\isabella\appdata\local\programs\python\python38\lib\site-packages (from pygeoprocessing==2.0.0) (3.0.4)
Requirement already satisfied: setuptools in c:\users\isabella\appdata\local\programs\python\python38\lib\site-packages (from Rtree>=0.8.3->pygeoprocessing==2.0.0) (41.2.0)
ERROR: natcap-invest 3.8.2 has requirement GDAL<3.0,>=2.0, but you'll have gdal 3.0.4 which is incompatible.
ERROR: natcap-invest 3.8.2 has requirement Shapely<1.7.0,>=1.6.4, but you'll have shapely 1.7.0 which is incompatible.
Installing collected packages: pygeoprocessing
Successfully installed pygeoprocessing-2.0.0
then when I try to run invest --help
it returns the same error as before.
The error message says that GDAL and Shapely as well aren’t the required versions for inVEST, but I couldn’t install the required versions as they are incompatible with the Python I am running