-
-
Save junzis/36fee36acd7cadfdf1c01c06d97f4947 to your computer and use it in GitHub Desktop.
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 |
what about on windows? help!
在窗户上怎么样?救命!
试一下这个https://www.lfd.uci.edu/~gohlke/pythonlibs/,你可以在上面找到编译好的库,直接安装就可以了。注意版本号要匹配。geos可以通过pip3 install geos安装。
for Windows 10 try Basemap library using Anaconda Jupyter Notebooks - KeyError: PROJ_LIB:
is this for mac system ??
/Downloads$ pip3 install --user https://github.com/matplotlib/basemap/archive/master.zip/Downloads$ ls
Collecting 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.
import pyroms
Traceback (most recent call last):
File "", line 1, in
File "/home/hafez/Downloads/pyroms/pyroms/pyroms/init.py", line 14, in
from . import hgrid
File "/home/hafez/Downloads/pyroms/pyroms/pyroms/hgrid.py", line 22, in
from mpl_toolkits.basemap import Basemap
ModuleNotFoundError: No module named 'mpl_toolkits.basemap'
from mpl_toolkits.basemap import Basemap
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'mpl_toolkits.basemap'
from mpl_toolkits.basemap import Basemap
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'mpl_toolkits.basemap'
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
.
thanks a lot, it was the only way thats work for me, to resolve the problem KeyError 'PROJ_LIB' martinchristen/EuroSciPy2018#2