Python 如何安装 Matplotlib 的底图?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33020202/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 12:37:42  来源:igfitidea点击:

How to install Matplotlib's basemap?

pythonmatplotlibmatplotlib-basemap

提问by Klausos Klausos

It is unclear to me how to install Matplotlib's Basemapon Windows. Maybe the question is straightforward, I need some help.

我不清楚如何在 Windows 上安装 Matplotlib 的底图。也许问题很简单,我需要一些帮助。

I followed this tutorial. As far as I understand, first, GEOSand PROJ4should be installed, and lastly matplotlib-1.4.3.win-amd64-py2.7.exeshould be executed.

我跟着这个教程。据我了解,第一,GEOSPROJ4应安装,最后matplotlib-1.4.3.win-amd64-py2.7.exe应该执行。

I get stuck with GEOS. I downloaded source code of geos-3.5.0, "untarred" it, then I go to a Command Prompt, change directory to geos-3.5.0 and run this:

我被 GEOS 卡住了。我下载了 geos-3.5.0 的源代码,“解压”了它,然后我转到命令提示符,将目录更改为 geos-3.5.0 并运行以下命令:

export d://test

but it does not work.

但它不起作用。

采纳答案by Leb

Use this downloadfor basemap on Windows.

将此下载用于 Windows 上的底图。

It worked for me:

它对我有用:

pip install basemap-1.0.8-cp34-none-win_amd64.whl

Assuming you're in right directory of course.

当然,假设您在正确的目录中。