按照this page中的说明,我下载了底图及其依赖项。我跑的时候
sudo apt-get install python-mpltoolkits.basemap
它给了我以下输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-mpltoolkits.basemap is already the newest version (1.0.7+dfsg-3build2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
同样的事情
sudo apt-get install python-matplotlib
但是在示例文件夹中运行simpletest.py会出现以下错误:
Traceback (most recent call last):
File "simpletest.py", line 1, in <module>
from mpl_toolkits.basemap import Basemap
ImportError: No module named basemap
我还尝试了另一种描述same page的方法从源安装,但输出是一样的。我在ubuntu16.04 LTS上运行。任何想法!
答案 0 :(得分:1)
如果你正在使用Anaconda,它有一个底图包: conda安装底图