pysal / segregation

Segregation Measurement, Inferential Statistics, and Decomposition Analysis
https://pysal.org/segregation/
BSD 3-Clause "New" or "Revised" License
111 stars 26 forks source link

installation issue #173

Closed renanxcortes closed 3 years ago

renanxcortes commented 3 years ago

Hi guys,

I'm hitting into an installation issue recently as following (I also upgraded my pip installation and it didn't fix):

    ERROR: Command errored out with exit status 1:
     command: 'c:\program files\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\RENAN~1.COR\\AppData\\Local\\Temp\\pip-install-etivg7h4\\fiona_6571402548be4f63959e6ede7729f21c\\setup.py'"'"'; __file__='"'"'C:\\Users\\RENAN~1.COR\\AppData\\Local\\Temp\\pip-install-etivg7h4\\fiona_6571402548be4f63959e6ede7729f21c\\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\RENAN~1.COR\AppData\Local\Temp\pip-pip-egg-info-c_opmayw'
         cwd: C:\Users\RENAN~1.COR\AppData\Local\Temp\pip-install-etivg7h4\fiona_6571402548be4f63959e6ede7729f21c\
    Complete output (1 lines):
    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: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.3.3; however, version 21.1.3 is available.
You should consider upgrading via the 'c:\program files\anaconda3\python.exe -m pip install --upgrade pip' command.

Any thoughts of how to overcome this?

knaaptime commented 3 years ago

are you stuck using pip over conda? That error is coming from fiona (through geopandas) because it cant find your gdal installation. Starting a clean anaconda environment and using conda to install geopandas and friends is the quickest way to resolve, but if you're stuck using pip you might try reinstalling gdal or something. Unfortunately this can be tough to debug if you're doing everything through pip

renanxcortes commented 3 years ago

Ow, got it! I think I'll swap to condaenv and I'll close this issue since this is not segregation's related! Thanks!