geopandas 설치시 에러 해결방법 - 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..

CODEDRAGON Development/Python

반응형

 

 

 

오류메시지

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.

 
C:\CodeLab>pip install geopandas
Collecting geopandas
  Downloading https://files.pythonhosted.org/packages/5b/0c/e6c99e561b03482220f00443f610ccf4dce9b50f4b1093d735f93c6fc8c6/geopandas-0.6.2-py2.py3-none-any.whl (919kB)
     |████████████████████████████████| 921kB 656kB/s
Collecting fiona
  Downloading https://files.pythonhosted.org/packages/9d/f4/0a0ddc6174c4a93679b5f1dd3535e7ef8989828e6d5f86112de681f8c87b/Fiona-1.8.11.tar.gz (1.2MB)
     |████████████████████████████████| 1.2MB 819kB/s
    ERROR: Command errored out with exit status 1:
     command: 'c:\python\python36\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Public\\Documents\\ESTsoft\\CreatorTemp\\pip-install-19vhf4do\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\Public\\Documents\\ESTsoft\\CreatorTemp\\pip-install-19vhf4do\\fiona\\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\Public\Documents\ESTsoft\CreatorTemp\pip-install-19vhf4do\fiona\pip-egg-info'
         cwd: C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-install-19vhf4do\fiona\
    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.
 
C:\CodeLab>pip install geopandas
Collecting geopandas
  Using cached https://files.pythonhosted.org/packages/5b/0c/e6c99e561b03482220f00443f610ccf4dce9b50f4b1093d735f93c6fc8c6/geopandas-0.6.2-py2.py3-none-any.whl
Requirement already satisfied: pandas>=0.23.0 in c:\python\python36\lib\site-packages (from geopandas) (0.23.0)
Collecting fiona
  Using cached https://files.pythonhosted.org/packages/9d/f4/0a0ddc6174c4a93679b5f1dd3535e7ef8989828e6d5f86112de681f8c87b/Fiona-1.8.11.tar.gz
    ERROR: Command errored out with exit status 1:
     command: 'c:\python\python36\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Public\\Documents\\ESTsoft\\CreatorTemp\\pip-install-1x6wjxvv\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\Public\\Documents\\ESTsoft\\CreatorTemp\\pip-install-1x6wjxvv\\fiona\\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\Public\Documents\ESTsoft\CreatorTemp\pip-install-1x6wjxvv\fiona\pip-egg-info'
         cwd: C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-install-1x6wjxvv\fiona\
    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.
 
C:\CodeLab>

 

 

  

해결방법

·       geopandas 사용하기 위해서 함께 사용되는 의존성 패키지도 함께 설치해 주어야 합니다.

·       아래 링크를 참조하여 순서대로 해결하시기 바랍니다.

 

https://codedragon.tistory.com/9556

 

geopandas installing with pip

geopandas installing with pip ·      파이썬 버전 확인 ·      운영체제 OS bit 버전 확인 ·      whl파일 다운로드 ·      whl파일 설치 파이썬 버전 확인 C:\CodeLab>python --versio..

codedragon.tistory.com

 

 

 

'Development > Python' 카테고리의 다른 글

파이썬의 내장 자료형  (0) 2019.11.29
변수 선언, 변수에 담겨 있는 값 변경하기  (0) 2019.11.29
geopandas installing with pip  (0) 2019.11.28
XML vs CSV  (0) 2019.11.27
GeoPandas  (0) 2019.11.26