问题描述
是否有一个教程(逐步)在Windows PC上安装Geopandas?或哪种方法更好?
Is there a tutorial (step by step) to install geopandas on a windows pc? or which way works better?
我已经使用anaconda尝试了文档中的解决方案,但最终还是收到了错误消息(甚至创建了建议的环境).我什至尝试按照另一个类似问题中的建议,为不同的相关软件包安装所谓的车轮.对于像我这样刚接触python的人,我正在寻找易于安装的东西,或者在安装此软件包时没有这种东西
I have tried the solutions in the documentation using anaconda but I ended up receiving errors (even creating an environment as recommended). I even tried installing what are called wheels for the different associated packages as suggested in another similar question. For someone new like me into python I was looking for something easy to follow to install, or there is not such thing when installing this package
以下是文档: https://geopandas.org/install.html
推荐答案
从用于Python扩展包的非官方Windows二进制文件到一个唯一的文件夹中,打开命令提示符,然后键入
After manually downloading the WHL files (whose names are listed below) from Unofficial Windows Binaries for Python Extension Packages onto a unique folder, open a command Prompt and type
cd C:\path\to\the\folder\that\contains\the\WHL\files
pip3.7 install GDAL-3.0.4-cp37-cp37m-win_amd64.whl && setx GDAL_VERSION "3.0.4"
pip3.7 install Fiona-1.8.13-cp37-cp37m-win_amd64.whl
pip3.7 install geopandas-0.7.0-py3-none-any.whl
(已测试)
另一个例子
Another example
cd C:\path\to\the\folder\that\contains\the\WHL\files
pip3.8 install GDAL-3.0.4-cp38-cp38-win32.whl && setx GDAL_VERSION "3.0.4"
pip3.8 install Fiona-1.8.13-cp38-cp38-win32.whl
pip3.8 install geopandas-0.7.0-py3-none-any.whl
这篇关于在Windows上安装Geopandas的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!