Skip to content

Instantly share code, notes, and snippets.

@junzis
Last active December 4, 2021 01:22
Show Gist options
  • Save junzis/36fee36acd7cadfdf1c01c06d97f4947 to your computer and use it in GitHub Desktop.
Save junzis/36fee36acd7cadfdf1c01c06d97f4947 to your computer and use it in GitHub Desktop.
install basemap quickly on ubuntu
sudo apt-get install libgeos-3.X.X
sudo apt-get install libgeos-dev
pip install --user https://github.com/matplotlib/basemap/archive/master.zip
@s-bn
Copy link

s-bn commented Jun 20, 2020

thanks a lot, it was the only way thats work for me, to resolve the problem KeyError 'PROJ_LIB' martinchristen/EuroSciPy2018#2

I was so happy when I read this and knew I'd finally be able to get basemap to work!!

@junzis
Copy link
Author

junzis commented Jul 13, 2020

This gist was created quite a long time ago.

I recommend using anaconda in order to install basemap properly.

Or even better, you should consider switching to cartopy, which is more powerful than basemap. It can also be easily installed using anaconda.

@hafez-ahmad
Copy link

Yeah, I agree, switch cartopy which same functionality.

@Naeemkh
Copy link

Naeemkh commented Aug 2, 2020

I used anaconda; it works ok on the local machine; however, it gives different frustrating errors on the CI. I am considering switching to cartopy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment