Last active
December 4, 2021 01:22
-
-
Save junzis/36fee36acd7cadfdf1c01c06d97f4947 to your computer and use it in GitHub Desktop.
install basemap quickly on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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!!
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.
Yeah, I agree, switch cartopy which same functionality.
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
/Downloads$ pip3 install --user https://github.com/matplotlib/basemap/archive/master.zip/Downloads$ lsCollecting https://github.com/matplotlib/basemap/archive/master.zip
Downloading https://github.com/matplotlib/basemap/archive/master.zip (133.1MB)
99% |████████████████████████████████| 133.1MB 538kB/s eta 0:00:01Killed
hafez@hafez:
basemap-1.2.1-cp36-cp36m-win_amd64.whl matplotlib-1.5.0
basemap-master matplotlib-1.5.0.tar.gz
basemap-master.zip pyroms
hafez@hafez:~/Downloads$ python3
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.