Geopandas 包安装

资源:
geopandas的官网https://geopandas.org/en/stable/getting_started/install.html

一、下载包
https://www.lfd.uci.edu/~gohlke/pythonlibs/
到这个地址有各种包
Geopandas 包安装_第1张图片
需要下载的依赖,注意python的版本要和
Geopandas 包安装_第2张图片
在cmd中进行
在这里插入图片描述
安装上四个包之后,再需要进行
Geopandas 包安装_第3张图片

pip insatll geopandas

问题一、报错如下:此问题是没有python相应的内核,在cmd中和anaconda prompt中输入python都不同
解决办法重新建一个环境,还需要将对应的python填入环境变量
参考文档https://blog.csdn.net/weixin_41429931/article/details/113623640 Anaconda配置虚拟环境并为Jupyter notebook添加内核|功能

如何为jupyter添加内核

在anaconda prompt中 输入

pip install jupyter notebook

注册kernel

conda info -e
conda activate env_name
conda install -c anaconda ipykernel
python -m ipykernel install --user --name=kernel_name

重新启动Jupyter notebook 即可以看到新的Kernel已经加载,再安装需要的四个包即可
Geopandas 包安装_第4张图片
Geopandas 包安装_第5张图片

问题二、安装fiona报错,解决办法,可能是版本不对,下载相应版本的即可,参考https://blog.csdn.net/qq_25662395/article/details/104458960

你可能感兴趣的:(Python,python,开发语言)