python3) KeyError : 'PROJ_LIB' 문제 해결하기 (Basemap)

2021. 6. 29. 23:45분석 Python/Packages

conda install -c conda-forge basemap-data-hires
import os
os.environ["PROJ_LIB"] = "/###/conda/envs/###(your env)/share/proj"
os.environ["PROJ_LIB"] = os.path.join(os.environ["CONDA_PREFIX"], "share", "proj")

각자 사용하는 환경에서 proj 경로 맞춰주기

 

 

 

https://stackoverflow.com/questions/52295117/basemap-import-error-in-pycharm-keyerror-proj-lib

 

Basemap import error in PyCharm — KeyError: 'PROJ_LIB'

I tried to use Basemap package to plot a map by PyCharm, but I got something wrong with from mpl_toolkits.basemap import Basemap` And the Traceback as followed: Traceback (most recent call last)...

stackoverflow.com

 

728x90