![]() This import should not result in any exceptions. ![]() You can then confirm the install was successful by opening a Python interpreter and running import geopandas. Now that you have GDAL and Fiona, you should be able to run the following command to install geopandas: If you don't see any errors from running this command, geopandas should install successfully. ![]() Make sure to replace the wheel with your version. Similar to GDAL, you can install the Fiona wheel with pip like so: The wheel that corresponds matches my Python version is Fiona‑1.8.20‑cp38‑cp38‑win_amd64.whl. In this case, the most recent Fiona version is 1.8.20, which worked with my system. Geopandas also requires Fiona, and you can obtain a wheel of Fiona for your system here: Īgain, you will see different wheel options, and like GDAL from the previous step, you need to match your Python version. If the install completes without errors, you can now install Fiona in the next step. This command will differ depending on the GDAL version you downloaded. Once you download the wheel, you can install it using pip by first using command prompt to go to the directory where the wheel is located, then run the following install command: Notice that the cp38 and amd64 match my Python version. Since my Python version is Python 3.8, 64-bit, this corresponds to the GDAL wheel GDAL‑3.3.0‑cp38‑cp38‑win_amd64.whl. Instead, I went with one version lower: 3.2.3. At the time of this writing, the latest version of GDAL is 3.3.0, but this version did not successfully install despite my Python version matching. You will see a list of different versions, and you need to pick the version that corresponds to the Python version you found in step one. Geopandas requires GDAL, and you can obtain a wheel of GDAL for your system here: This printout tells me that I have Python 3.8, 64 bit (AMD64), which we'll need to keep in mind for the next steps. You will see a similar version info printout to this: If you don't have Anaconda, there are several dependencies you need to install first for geopandas to install via pip successfully. The easiest way to install geopandas on Windows is to use Anaconda with the following command: conda install -c conda-forge geopandas
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |