Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

while importing basemap after first installation via conda it gives me attached error

from mpl_toolkits.basemap import Basemap

KeyError Traceback (most recent call last) in ----> 1 from mpl_toolkits.basemap import Basemap

~anaconda3libsite-packagesmpl_toolkitsasemap\__init__.py in <module>
    150 
    151 # create dictionary that maps epsg codes to Basemap kwargs.
--> 152 pyproj_datadir = os.environ['PROJ_LIB']
    153 epsgf = open(os.path.join(basemap_datadir,'epsg'))
    154 epsg_dict={}

~anaconda3libos.py in __getitem__(self, key)
    673         except KeyError:
    674             # raise KeyError with the original key value
--> 675             raise KeyError(key) from None
    676         return self.decodevalue(value)
    677 

KeyError: 'PROJ_LIB'
question from:https://stackoverflow.com/questions/65644393/while-importing-basemap-after-first-installation-via-conda-it-gives-me-attached

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...