Python3安装Basemap及Jupyter

Python3安装Basemap及Jupyter

安装Basemap,需要安装Pyproj(目前已经找不到,安装Basemap的同时会安装pyproj),下载链接地址为:下载Pyproj以及Basemap对应python版本的whl文件,如下图所示。按住Ctrl+f通过搜索关键字来查找文件位置。

Python3安装Basemap及Jupyter
下载到指定位置后,在命令行输入命令: pip install basemap-1.2.2-cp38-cp38-win_amd64.whl安装,可以看到成功安装了basemap和pyproj,也可使用命令pip list 进行查询。

注: 上述命令中cp38,是指本机python版本,可使用命令python -V进行查询。

Python3安装Basemap及Jupyter
目前使用Jupyter的数量较多,是因为Jupyter notebook是一种 Web 应用,能让用户将说明文本、数学方程、代码和可视化内容全部组合到一个易于共享的文档中。它与博客类似,非常方便使用。随着数据分析的火热,Jupyter相当有用。

注: 安装jupyter最简单的方法是安装Anaconda,小编此处直接使用命令进行安装Jupyter。

Python3安装Basemap及Jupyter
Python3安装Basemap及Jupyter
在Jupyter编写代码进行测试,导包不报错,说明安装没问题。
代码引用: https://www.cnblogs.com/Fantinai/p/8733812.html

Python3安装Basemap及Jupyter