lisflood-code
lisflood-code copied to clipboard
linux box on Windows installation at pip install lisflood-model : legacy-install-failure error
Hey you all, I am trying to install Lisflood on Win10 machine but thanks to the suggestion that https://github.com/ec-jrc/lisflood-code/issues/91 I created a Linux Box and trying to install everything in there.
after I run pip install lisflood-model
I took the following error:
first :
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for GDAL
Running setup.py clean for GDAL
Failed to build lisflood-model GDAL
Installing collected packages: zipp, scipy, python-dateutil, prompt-toolkit, pathlib2, packaging, numexpr, gitdb2, GDAL, future-fstrings, future, entrypoints, docutils, decorator, dask, Cython, cftime, beautifulsoup4, attrs, atomicwrites, traitlets, tasklogger, scikit-learn, PyGSP, pandas, netCDF4, importlib-metadata, bleach, xarray, scprep, readme-renderer, pluggy, graphtools, meld, lisflood-utilities, lisflood-model
Running setup.py install for GDAL ... error
error: subprocess-exited-with-error
× Running setup.py install for GDAL did not run successfully.
│ exit code: 1
╰─> [132 lines of output]`
Then downloads some packages and comes to the following error:
error: command 'gcc' failed: No such file or directory: 'gcc'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> GDAL
Any help is appreciated, thanks.
You need to install it first by using the following command
sudo apt-get install gcc
https://github.com/watson-developer-cloud/python-sdk/issues/418