在Ubuntu上安装matplotlib vn 1.2和Basemap

问题描述 投票:1回答:1

我正在尝试在我的Ubuntu计算机上安装Matplotlib的vn 1.2,以便我可以使用一些动画功能。至关重要的是我还需要底图。

我发现导入Basemap的唯一方法是通过apt-get。我可以安装matplotlib 1.2加载不同的方式 - 使用pip,apt-get和源代码,但无论我做什么,当涉及到输入时

sudo apt-get install python-mpltoolkits.basemap

我总是被告知matplotlib将被安装,因为apt-get无法看到我已经拥有的1.2版本。

我也尝试从源代码安装Basemap(使用这个精彩网站上的说明:http://peak5390.wordpress.com/2012/12/08/matplotlib-basemap-tutorial-installing-matplotlib-and-basemap/)但是我遇到了与GEOS相关的问题,我不知道如何开始解决。如果我可以使用apt-get来安装Basemap那么我会非常高兴。

谢谢

ubuntu matplotlib apt-get matplotlib-basemap
1个回答
0
投票
sudo apt-get install libgeos-dev

sudo pip3 install -U git+https://github.com/matplotlib/basemap.git  # latest Version from Source 1.2

旧版本可能与matplotlib不兼容。

© www.soinside.com 2019 - 2024. All rights reserved.