Skip to content

Problem installing basemap via conda on Python 3.6: KeyError when finding pyproj library? #420

@fclubb

Description

@fclubb

When I try to install basemap via conda (Ubuntu 18.04) I get the following error:

from mpl_toolkits.basemap import Basemap
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/clubb/miniconda3/lib/python3.6/site-packages/mpl_toolkits/basemap/__init__.py", line 146, in <module>
    pyproj_datadir = os.environ['PROJ_LIB']
  File "/home/clubb/miniconda3/lib/python3.6/os.py", line 669, in __getitem__
    raise KeyError(key) from None
KeyError: 'PROJ_LIB'

I have the following packages installed:

basemap v1.1.0 conda-forge
geos 3.6.2 conda-forge
numpy 1.15.1 conda-forge
pyproj 1.9.5.1 conda-forge
pyshp 1.2.12 conda-forge

Any help on fixing would be much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions