mdbartos / pysheds

:earth_americas: Simple and fast watershed delineation in python.
GNU General Public License v3.0
717 stars 196 forks source link

Help! error happened as installing pysheds #119

Closed River-Jr closed 4 years ago

River-Jr commented 4 years ago

When installing pysheds, I got the following message, but I have no idea about it. Can anyone help?

============== (base) C:\Users\River>pip install pysheds Processing c:\users\river\appdata\local\pip\cache\wheels\e4\87\6f\f67cbfbc39ea2c76e0cb801c37590b9e3c47e9eee7baea2547\pysheds-0.2.7-cp37-none-any.whl Requirement already satisfied: scikit-image in c:\anaconda3\lib\site-packages (from pysheds) (0.16.2) Requirement already satisfied: scipy in c:\anaconda3\lib\site-packages (from pysheds) (1.4.1) Requirement already satisfied: pandas in c:\anaconda3\lib\site-packages (from pysheds) (1.0.1) Collecting rasterio>=1 Using cached rasterio-1.1.4.tar.gz (2.2 MB) Installing build dependencies ... done Getting requirements to build wheel ... error ERROR: Command errored out with exit status 1: command: 'C:\Anaconda3\python.exe' 'C:\Anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' get_requires_for_build_wheel 'C:\Users\River\AppData\Local\Temp\tmpmrrggwvr' cwd: C:\Users\River\AppData\Local\Temp\pip-install-uliob1sr\rasterio Complete output (2 lines): INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README. ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.

ERROR: Command errored out with exit status 1: 'C:\Anaconda3\python.exe' 'C:\Anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' get_requires_for_build_wheel 'C:\Users\River\AppData\Local\Temp\tmpmrrggwvr' Check the logs for full command output.

River-Jr commented 4 years ago

I solved this problem via conda install.