TransWikia.com

When installing Fiona on Windows 8.1 it does not fetch correct GDAL version

Geographic Information Systems Asked on February 16, 2021

When I try to install Fiona binary

C:Python37Scripts>pip install "D:/Fiona-1.8.13-cp37-cp37m-win_amd64.whl"

using the 'Fiona-1.8.13-cp37-cp37m-win_amd64.whl' from the Unofficial Windows Binaries for Python Extension Packages I end up with the following error:

Processing d:fiona-1.8.13-cp37-cp37m-win_amd64.whl
Requirement already satisfied: cligj>=0.5 in c:python37libsite-packages (from
 Fiona==1.8.13) (0.5.0)
Requirement already satisfied: click>=4.0 in c:userstaras dubravaappdataroam
ingpythonpython37site-packages (from Fiona==1.8.13) (7.1.2)
Requirement already satisfied: click-plugins>=1.0 in c:python37libsite-packag
es (from Fiona==1.8.13) (1.1.1)
Requirement already satisfied: munch in c:python37libsite-packages (from Fion
a==1.8.13) (2.5.0)
Requirement already satisfied: attrs>=17 in c:python37libsite-packages (from
Fiona==1.8.13) (19.3.0)
Requirement already satisfied: six>=1.7 in c:python37libsite-packages (from F
iona==1.8.13) (1.12.0)
Requirement already satisfied: click>=4.0 in c:userstaras dubravaappdataroam
ingpythonpython37site-packages (from Fiona==1.8.13) (7.1.2)
Requirement already satisfied: click>=4.0 in c:userstaras dubravaappdataroam
ingpythonpython37site-packages (from Fiona==1.8.13) (7.1.2)
Collecting gdal~=3.0.2
  Using cached GDAL-3.0.4.tar.gz (577 kB)
Requirement already satisfied: six>=1.7 in c:python37libsite-packages (from F
iona==1.8.13) (1.12.0)
Building wheels for collected packages: gdal
  Building wheel for gdal (setup.py) ... -

code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code,
 __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersTARASD~1AppDataLocalTem
ppip-wheel-l3a00k58'
       cwd: C:UsersTARASD~1AppDataLocalTemppip-install-v9cce2x4gdal_3c791
9e51a8f4da88c1e727a3eff659a
  Complete output (28 lines):
  c:python37libdistutilsdist.py:274: UserWarning: Unknown distribution optio
n: 'long_description_content_type'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating buildlib.win-amd64-3.7
  copying gdal.py -> buildlib.win-amd64-3.7
  copying ogr.py -> buildlib.win-amd64-3.7
  copying osr.py -> buildlib.win-amd64-3.7
  copying gdalconst.py -> buildlib.win-amd64-3.7
  copying gdalnumeric.py -> buildlib.win-amd64-3.7
  creating buildlib.win-amd64-3.7osgeo
  copying osgeogdal.py -> buildlib.win-amd64-3.7osgeo
  copying osgeogdalconst.py -> buildlib.win-amd64-3.7osgeo
  copying osgeogdalnumeric.py -> buildlib.win-amd64-3.7osgeo
  copying osgeogdal_array.py -> buildlib.win-amd64-3.7osgeo
  copying osgeognm.py -> buildlib.win-amd64-3.7osgeo
  copying osgeoogr.py -> buildlib.win-amd64-3.7osgeo
  copying osgeoosr.py -> buildlib.win-amd64-3.7osgeo
  copying osgeo__init__.py -> buildlib.win-amd64-3.7osgeo
  Fixing buildlib.win-amd64-3.7gdal.py buildlib.win-amd64-3.7ogr.py buildli
b.win-amd64-3.7osr.py buildlib.win-amd64-3.7gdalconst.py buildlib.win-amd64-
3.7gdalnumeric.py buildlib.win-amd64-3.7osgeogdal.py buildlib.win-amd64-3.7
osgeogdalconst.py buildlib.win-amd64-3.7osgeogdalnumeric.py buildlib.win-a
md64-3.7osgeogdal_array.py buildlib.win-amd64-3.7osgeognm.py buildlib.win-
amd64-3.7osgeoogr.py buildlib.win-amd64-3.7osgeoosr.py buildlib.win-amd64-
3.7osgeo__init__.py
  Skipping optional fixer: ws_comma
  Fixing buildlib.win-amd64-3.7gdal.py buildlib.win-amd64-3.7ogr.py buildli
b.win-amd64-3.7osr.py buildlib.win-amd64-3.7gdalconst.py buildlib.win-amd64-
3.7gdalnumeric.py buildlib.win-amd64-3.7osgeogdal.py buildlib.win-amd64-3.7
osgeogdalconst.py buildlib.win-amd64-3.7osgeogdalnumeric.py buildlib.win-a
md64-3.7osgeogdal_array.py buildlib.win-amd64-3.7osgeognm.py buildlib.win-
amd64-3.7osgeoogr.py buildlib.win-amd64-3.7osgeoosr.py buildlib.win-amd64-
3.7osgeo__init__.py
  Skipping optional fixer: ws_comma
  running build_ext
  building 'osgeo._gdal' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C+
+ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
  ----------------------------------------
  ERROR: Failed building wheel for gdal
  Running setup.py clean for gdal
Failed to build gdal
Installing collected packages: gdal, Fiona
  Attempting uninstall: gdal
    Found existing installation: gdal 2.4.1
    Uninstalling gdal-2.4.1:
      Successfully uninstalled gdal-2.4.1
    Running setup.py install for gdal ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:python37python.exe' -u -c 'import sys, setuptools, tokenize;
sys.argv[0] = '"'"'C:UsersTARASD~1AppDataLocalTemppip-install-v9cce2
x4gdal_3c7919e51a8f4da88c1e727a3eff659asetup.py'"'"'; __file__='"'"'C:User
sTARASD~1AppDataLocalTemppip-install-v9cce2x4gdal_3c7919e51a8f4da88c
1e727a3eff659asetup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__
);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(cod
e, __file__, '"'"'exec'"'"'))' install --record 'C:UsersTARASD~1AppDataLocal
Temppip-record-7cb0xxo8install-record.txt' --single-version-externally-manage
d --compile --install-headers 'c:python37Includegdal'
         cwd: C:UsersTARASD~1AppDataLocalTemppip-install-v9cce2x4gdal_3c7
919e51a8f4da88c1e727a3eff659a
    Complete output (28 lines):
    c:python37libdistutilsdist.py:274: UserWarning: Unknown distribution opt
ion: 'long_description_content_type'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating buildlib.win-amd64-3.7
    copying gdal.py -> buildlib.win-amd64-3.7
    copying ogr.py -> buildlib.win-amd64-3.7
    copying osr.py -> buildlib.win-amd64-3.7
    copying gdalconst.py -> buildlib.win-amd64-3.7
    copying gdalnumeric.py -> buildlib.win-amd64-3.7
    creating buildlib.win-amd64-3.7osgeo
    copying osgeogdal.py -> buildlib.win-amd64-3.7osgeo
    copying osgeogdalconst.py -> buildlib.win-amd64-3.7osgeo
    copying osgeogdalnumeric.py -> buildlib.win-amd64-3.7osgeo
    copying osgeogdal_array.py -> buildlib.win-amd64-3.7osgeo
    copying osgeognm.py -> buildlib.win-amd64-3.7osgeo
    copying osgeoogr.py -> buildlib.win-amd64-3.7osgeo
    copying osgeoosr.py -> buildlib.win-amd64-3.7osgeo
    copying osgeo__init__.py -> buildlib.win-amd64-3.7osgeo
    Fixing buildlib.win-amd64-3.7gdal.py buildlib.win-amd64-3.7ogr.py build
lib.win-amd64-3.7osr.py buildlib.win-amd64-3.7gdalconst.py buildlib.win-amd6
4-3.7gdalnumeric.py buildlib.win-amd64-3.7osgeogdal.py buildlib.win-amd64-3
.7osgeogdalconst.py buildlib.win-amd64-3.7osgeogdalnumeric.py buildlib.win
-amd64-3.7osgeogdal_array.py buildlib.win-amd64-3.7osgeognm.py buildlib.wi
n-amd64-3.7osgeoogr.py buildlib.win-amd64-3.7osgeoosr.py buildlib.win-amd6
4-3.7osgeo__init__.py
    Skipping optional fixer: ws_comma
    Fixing buildlib.win-amd64-3.7gdal.py buildlib.win-amd64-3.7ogr.py build
lib.win-amd64-3.7osr.py buildlib.win-amd64-3.7gdalconst.py buildlib.win-amd6
4-3.7gdalnumeric.py buildlib.win-amd64-3.7osgeogdal.py buildlib.win-amd64-3
.7osgeogdalconst.py buildlib.win-amd64-3.7osgeogdalnumeric.py buildlib.win
-amd64-3.7osgeogdal_array.py buildlib.win-amd64-3.7osgeognm.py buildlib.wi
n-amd64-3.7osgeoogr.py buildlib.win-amd64-3.7osgeoosr.py buildlib.win-amd6
4-3.7osgeo__init__.py
    Skipping optional fixer: ws_comma
    running build_ext
    building 'osgeo._gdal' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
    ----------------------------------------
  Rolling back uninstall of gdal
  Moving to c:python37libsite-packages__pycache__gdal.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-p97cc4m7gdal.cpython
-37.pyc
  Moving to c:python37libsite-packages__pycache__gdalconst.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-p97cc4m7gdalconst.cp
ython-37.pyc
  Moving to c:python37libsite-packages__pycache__gdalnumeric.cpython-37.pyc

   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-p97cc4m7gdalnumeric.
cpython-37.pyc
  Moving to c:python37libsite-packages__pycache__ogr.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-p97cc4m7ogr.cpython-
37.pyc
  Moving to c:python37libsite-packages__pycache__osr.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-p97cc4m7osr.cpython-
37.pyc
  Moving to c:python37libsite-packagesgdal-2.4.1.dist-info
   from c:python37libsite-packages~dal-2.4.1.dist-info
  Moving to c:python37libsite-packagesgdal.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-vaihk_24gdal.py
  Moving to c:python37libsite-packagesgdalconst.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-vaihk_24gdalconst.py

  Moving to c:python37libsite-packagesgdalnumeric.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-vaihk_24gdalnumeric.
py
  Moving to c:python37libsite-packagesogr.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-vaihk_24ogr.py
  Moving to c:python37libsite-packagesosgeo
   from c:python37libsite-packages~sgeo
  Moving to c:python37libsite-packagesosr.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-vaihk_24osr.py
  Moving to c:python37scripts__pycache__epsg_tr.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecepsg_tr.cpyt
hon-37.pyc
  Moving to c:python37scripts__pycache__esri2wkt.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecesri2wkt.cpy
thon-37.pyc
  Moving to c:python37scripts__pycache__gcps2vec.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgcps2vec.cpy
thon-37.pyc
  Moving to c:python37scripts__pycache__gcps2wld.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgcps2wld.cpy
thon-37.pyc
  Moving to c:python37scripts__pycache__gdal2tiles.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal2tiles.c
python-37.pyc
  Moving to c:python37scripts__pycache__gdal2xyz.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal2xyz.cpy
thon-37.pyc
  Moving to c:python37scripts__pycache__gdal_auth.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal_auth.cp
ython-37.pyc
  Moving to c:python37scripts__pycache__gdal_calc.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal_calc.cp
ython-37.pyc
  Moving to c:python37scripts__pycache__gdal_edit.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal_edit.cp
ython-37.pyc
  Moving to c:python37scripts__pycache__gdal_fillnodata.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal_fillnod
ata.cpython-37.pyc
  Moving to c:python37scripts__pycache__gdal_merge.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal_merge.c
python-37.pyc
  Moving to c:python37scripts__pycache__gdal_pansharpen.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal_panshar
pen.cpython-37.pyc
  Moving to c:python37scripts__pycache__gdal_polygonize.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal_polygon
ize.cpython-37.pyc
  Moving to c:python37scripts__pycache__gdal_proximity.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal_proximi
ty.cpython-37.pyc
  Moving to c:python37scripts__pycache__gdal_retile.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal_retile.
cpython-37.pyc
  Moving to c:python37scripts__pycache__gdal_sieve.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdal_sieve.c
python-37.pyc
  Moving to c:python37scripts__pycache__gdalchksum.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdalchksum.c
python-37.pyc
  Moving to c:python37scripts__pycache__gdalcompare.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdalcompare.
cpython-37.pyc
  Moving to c:python37scripts__pycache__gdalident.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdalident.cp
ython-37.pyc
  Moving to c:python37scripts__pycache__gdalimport.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdalimport.c
python-37.pyc
  Moving to c:python37scripts__pycache__gdalmove.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecgdalmove.cpy
thon-37.pyc
  Moving to c:python37scripts__pycache__mkgraticule.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecmkgraticule.
cpython-37.pyc
  Moving to c:python37scripts__pycache__ogrmerge.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecogrmerge.cpy
thon-37.pyc
  Moving to c:python37scripts__pycache__pct2rgb.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecpct2rgb.cpyt
hon-37.pyc
  Moving to c:python37scripts__pycache__rgb2pct.cpython-37.pyc
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-wyx71hecrgb2pct.cpyt
hon-37.pyc
  Moving to c:python37scriptsepsg_tr.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yiepsg_tr.py
  Moving to c:python37scriptsesri2wkt.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yiesri2wkt.py
  Moving to c:python37scriptsgcps2vec.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigcps2vec.py
  Moving to c:python37scriptsgcps2wld.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigcps2wld.py
  Moving to c:python37scriptsgdal2tiles.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal2tiles.p
y
  Moving to c:python37scriptsgdal2xyz.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal2xyz.py
  Moving to c:python37scriptsgdal_auth.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal_auth.py

  Moving to c:python37scriptsgdal_calc.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal_calc.py

  Moving to c:python37scriptsgdal_edit.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal_edit.py

  Moving to c:python37scriptsgdal_fillnodata.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal_fillnod
ata.py
  Moving to c:python37scriptsgdal_merge.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal_merge.p
y
  Moving to c:python37scriptsgdal_pansharpen.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal_panshar
pen.py
  Moving to c:python37scriptsgdal_polygonize.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal_polygon
ize.py
  Moving to c:python37scriptsgdal_proximity.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal_proximi
ty.py
  Moving to c:python37scriptsgdal_retile.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal_retile.
py
  Moving to c:python37scriptsgdal_sieve.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdal_sieve.p
y
  Moving to c:python37scriptsgdalchksum.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdalchksum.p
y
  Moving to c:python37scriptsgdalcompare.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdalcompare.
py
  Moving to c:python37scriptsgdalident.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdalident.py

  Moving to c:python37scriptsgdalimport.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdalimport.p
y
  Moving to c:python37scriptsgdalmove.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yigdalmove.py
  Moving to c:python37scriptsmkgraticule.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yimkgraticule.
py
  Moving to c:python37scriptsogrmerge.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yiogrmerge.py
  Moving to c:python37scriptspct2rgb.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yipct2rgb.py
  Moving to c:python37scriptsrgb2pct.py
   from C:UsersTARASD~1AppDataLocalTemppip-uninstall-bz8c19yirgb2pct.py
ERROR: Command errored out with exit status 1: 'c:python37python.exe' -u -c 'i
mport sys, setuptools, tokenize; sys.argv[0] = '"'"'C:UsersTARASD~1AppData
LocalTemppip-install-v9cce2x4gdal_3c7919e51a8f4da88c1e727a3eff659asetu
p.py'"'"'; __file__='"'"'C:UsersTARASD~1AppDataLocalTemppip-install-
v9cce2x4gdal_3c7919e51a8f4da88c1e727a3eff659asetup.py'"'"';f=getattr(tokeniz
e, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record
 'C:UsersTARASD~1AppDataLocalTemppip-record-7cb0xxo8install-record.txt' -
-single-version-externally-managed --compile --install-headers 'c:python37Incl
udegdal' Check the logs for full command output.

How can I resolve this problem?

I have Windows 8.1 Enterprise with Python 3.7.1.

Based on this article

GDAL version 3 is not yet supported.

When I run C:Python37Scripts>pip freeze I can see that gdal==2.4.1 is installed on my PC.

Moreover, I am not sure whether I have to install additionally GDAL from GISInternals, i.e. release-1911-x64-gdal-2-4-1-mapserver-7-2-2?

2 Answers

The solution was easier than I expected. I found it in this answer on the Stack Overflow, despite a recommendation mentioned in this article, where installing the GDAL 3 was not suggested. Also, pay attention to this comment, where it states to "install the version that matches your Python installation".

So, there are two points that I comprehended when installing wheels. They shall match:

  1. the version of your Python, e.g. Python 3.7
  2. the bit version of your Python, e.g. 64

So, I have firstly installed "GDAL-3.1.4-cp37-cp37m-win_amd64.whl" with uninstalling the current version of GDAL, i.e. gdal 2.4.1.

C:Python37Scripts>pip install "D:/GDAL-3.1.4-cp37-cp37m-win_amd64.whl"
Processing d:gdal-3.1.4-cp37-cp37m-win_amd64.whl
Installing collected packages: GDAL
  Attempting uninstall: GDAL
    Found existing installation: gdal 2.4.1
    Uninstalling gdal-2.4.1:
      Successfully uninstalled gdal-2.4.1
Successfully installed GDAL-3.1.4

Secondly, I installed "D:/Fiona-1.8.18-cp37-cp37m-win_amd64.whl".

C:Python37Scripts>pip install "D:/Fiona-1.8.18-cp37-cp37m-win_amd64.whl"
Processing d:fiona-1.8.18-cp37-cp37m-win_amd64.whl
Requirement already satisfied: certifi in c:userstaras dubravaappdataroaming
pythonpython37site-packages (from Fiona==1.8.18) (2019.11.28)
Requirement already satisfied: click<8,>=4.0 in c:userstaras dubravaappdatar
oamingpythonpython37site-packages (from Fiona==1.8.18) (7.1.2)
Requirement already satisfied: click-plugins>=1.0 in c:python37libsite-packag
es (from Fiona==1.8.18) (1.1.1)
Requirement already satisfied: six>=1.7 in c:python37libsite-packages (from F
iona==1.8.18) (1.12.0)
Requirement already satisfied: attrs>=17 in c:python37libsite-packages (from
Fiona==1.8.18) (19.3.0)
Requirement already satisfied: munch in c:python37libsite-packages (from Fion
a==1.8.18) (2.5.0)
Requirement already satisfied: cligj>=0.5 in c:python37libsite-packages (from
 Fiona==1.8.18) (0.5.0)
Requirement already satisfied: gdal~=3.1.2 in c:python37libsite-packages (fro
m Fiona==1.8.18) (3.1.4)
Requirement already satisfied: click<8,>=4.0 in c:userstaras dubravaappdatar
oamingpythonpython37site-packages (from Fiona==1.8.18) (7.1.2)
Requirement already satisfied: click<8,>=4.0 in c:userstaras dubravaappdatar
oamingpythonpython37site-packages (from Fiona==1.8.18) (7.1.2)
Requirement already satisfied: six>=1.7 in c:python37libsite-packages (from F
iona==1.8.18) (1.12.0)
Installing collected packages: Fiona
Successfully installed Fiona-1.8.18

C:Python37Scripts>python
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD6
4)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import fiona
>>>

And finally, I was able to install geopandas

C:Python37Scripts>pip install geopandas
Collecting geopandas
  Downloading geopandas-0.8.1-py2.py3-none-any.whl (962 kB)
     |████████████████████████████████| 962 kB 3.3 MB/s
Requirement already satisfied: pandas>=0.23.0 in c:python37libsite-packages (
from geopandas) (0.25.1)
Requirement already satisfied: pyproj>=2.2.0 in c:userstaras dubravaappdatar
oamingpythonpython37site-packages (from geopandas) (2.6.1.post1)
Requirement already satisfied: shapely in c:python37libsite-packages (from ge
opandas) (1.7.0)
Requirement already satisfied: fiona in c:python37libsite-packages (from geop
andas) (1.8.18)
Requirement already satisfied: gdal~=3.1.2 in c:python37libsite-packages (fro
m fiona->geopandas) (3.1.4)
Requirement already satisfied: certifi in c:userstaras dubravaappdataroaming
pythonpython37site-packages (from fiona->geopandas) (2019.11.28)
Requirement already satisfied: click-plugins>=1.0 in c:python37libsite-packag
es (from fiona->geopandas) (1.1.1)
Requirement already satisfied: six>=1.7 in c:python37libsite-packages (from f
iona->geopandas) (1.12.0)
Requirement already satisfied: attrs>=17 in c:python37libsite-packages (from
fiona->geopandas) (19.3.0)
Requirement already satisfied: click<8,>=4.0 in c:userstaras dubravaappdatar
oamingpythonpython37site-packages (from fiona->geopandas) (7.1.2)
Requirement already satisfied: munch in c:python37libsite-packages (from fion
a->geopandas) (2.5.0)
Requirement already satisfied: cligj>=0.5 in c:python37libsite-packages (from
 fiona->geopandas) (0.5.0)
Requirement already satisfied: click<8,>=4.0 in c:userstaras dubravaappdatar
oamingpythonpython37site-packages (from fiona->geopandas) (7.1.2)
Requirement already satisfied: click<8,>=4.0 in c:userstaras dubravaappdatar
oamingpythonpython37site-packages (from fiona->geopandas) (7.1.2)
Requirement already satisfied: six>=1.7 in c:python37libsite-packages (from f
iona->geopandas) (1.12.0)
Requirement already satisfied: pytz>=2017.2 in c:python37libsite-packages (fr
om pandas>=0.23.0->geopandas) (2019.2)
Requirement already satisfied: numpy>=1.13.3 in c:python37libsite-packages (f
rom pandas>=0.23.0->geopandas) (1.17.2)
Requirement already satisfied: python-dateutil>=2.6.1 in c:python37libsite-pa
ckages (from pandas>=0.23.0->geopandas) (2.8.0)
Requirement already satisfied: six>=1.7 in c:python37libsite-packages (from f
iona->geopandas) (1.12.0)
Installing collected packages: geopandas
Successfully installed geopandas-0.8.1

C:Python37Scripts>python
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD6
4)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import geopandas
>>>

Correct answer by Taras on February 16, 2021

I've installed fiona & gdal on a few machines running windows using pipwin (If I remember correctly, all of them were windows 10 pro).

Please follow the answer posted here.

pip install wheel    
pip install pipwin

Thereafter, try pipwin for every package that fails to install with pip install

pipwin install numpy
pipwin install pandas
pipwin install shapely
pipwin install gdal
pipwin install fiona
pipwin install pyproj
pipwin install six
pipwin install rtree
pipwin install geopandas

This solution ought to work with your version of windows as well.

Answered by Badar Munir on February 16, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP