title: Unable to Install GDAL Using PIP on Python
body: <p>I'm trying to install gdal in python3.8.8 (Windows 10) and i'm getting below error
  I have install Visual Studio Build Tools 2019 and reboot my  PC
  Downgrade my Python from 3.9.5 to 3.8.8</p>
  <pre><code>C:\Program Files\Python38&gt;pip install gdal
  Collecting gdal
    Using cached GDAL-3.3.1.tar.gz (746 kB)
  Building wheels for collected packages: gdal
    Building wheel for gdal (setup.py) ... error
  ERROR: Command errored out with exit status 1:
  
  command: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-d1sufozs\\gdal\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-d1sufozs\\gdal\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\Administrator\AppData\Local\Temp\pip-record-q2jdc13d\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\program files\python38\Include\gdal'
           cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-d1sufozs\gdal\
      Complete output (136 lines):
      WARNING: numpy not available!  Array support will not be enabled
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.8
      creating build\lib.win-amd64-3.8\osgeo
      copying osgeo\gdal.py -&gt; build\lib.win-amd64-3.8\osgeo
      copying osgeo\gdalconst.py -&gt; build\lib.win-amd64-3.8\osgeo
      copying osgeo\gdalnumeric.py -&gt; build\lib.win-amd64-3.8\osgeo
      copying osgeo\gdal_array.py -&gt; build\lib.win-amd64-3.8\osgeo
      copying osgeo\gnm.py -&gt; build\lib.win-amd64-3.8\osgeo
      copying osgeo\ogr.py -&gt; build\lib.win-amd64-3.8\osgeo
      copying osgeo\osr.py -&gt; build\lib.win-amd64-3.8\osgeo
      copying osgeo\utils.py -&gt; build\lib.win-amd64-3.8\osgeo
      copying osgeo\__init__.py -&gt; build\lib.win-amd64-3.8\osgeo
      creating build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal2tiles.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal2xyz.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdalattachpct.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdalcompare.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdalmove.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_calc.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_edit.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_fillnodata.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_merge.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_pansharpen.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_polygonize.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_proximity.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_retile.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_sieve.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\ogrmerge.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\pct2rgb.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\rgb2pct.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      copying gdal-utils\osgeo_utils\__init__.py -&gt; build\lib.win-amd64-3.8\osgeo_utils
      creating build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\array_util.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\base.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\batch_creator.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\color_palette.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\color_table.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\extent_util.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\gdal_argparse.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\numpy_util.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\osr_util.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\progress.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\raster_creation.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\rectangle.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\util.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\__init__.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\auxiliary
      creating build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\assemblepoly.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\build_jp2_from_xml.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\classify.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\crs2crs2grid.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\densify.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\dump_jp2.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\epsg_tr.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\esri2wkt.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\fft.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\fix_gpkg.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gcps2ogr.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gcps2vec.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gcps2wld.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal2grd.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalchksum.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalcopyproj.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalfilter.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalident.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalimport.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalinfo.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdallocationinfo.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_auth.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_cp.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_create_pdf.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_ls.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_lut.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_mkdir.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_remove_towgs84.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_rm.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_rmdir.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_vrtmerge.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_zip.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\get_soundg.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\histrep.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\hsv_merge.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\jpeg_in_tiff_extract.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\load2odbc.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\loslas2ntv2.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\magphase.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\make_fuzzer_friendly_archive.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\mkgraticule.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogr2ogr.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogr2vrt.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogrinfo.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogrupdate.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogr_build_junction_table.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogr_dispatch.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogr_layer_algebra.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\rel.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\tigerpoly.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\tile_extent_from_raster.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\tolatlong.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\validate_cloud_optimized_geotiff.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\validate_gpkg.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\validate_jp2.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\val_repl.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\vec_tr.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\vec_tr_spat.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\wcs_virtds_params.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\__init__.py -&gt; build\lib.win-amd64-3.8\osgeo_utils\samples
      running build_ext
      building 'osgeo._gdal' extension
      building 'osgeo._gdalconst' extension
      building 'osgeo._osr' extension
      building 'osgeo._ogr' extension
      building 'osgeo._gnm' extension
      creating build\temp.win-amd64-3.8
      creating build\temp.win-amd64-3.8\Release
      creating build\temp.win-amd64-3.8\Release\extensions
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps &quot;-Ic:\program files\python38\include&quot; &quot;-Ic:\program files\python38\include&quot; -I. &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; /EHsc /Tpextensions/gdal_wrap.cpp /Fobuild\temp.win-amd64-3.8\Release\extensions/gdal_wrap.obj
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps &quot;-Ic:\program files\python38\include&quot; &quot;-Ic:\program files\python38\include&quot; -I. &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; /EHsc /Tpextensions/gnm_wrap.cpp /Fobuild\temp.win-amd64-3.8\Release\extensions/gnm_wrap.obj
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps &quot;-Ic:\program files\python38\include&quot; &quot;-Ic:\program files\python38\include&quot; -I. &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; /Tcextensions/gdalconst_wrap.c /Fobuild\temp.win-amd64-3.8\Release\extensions/gdalconst_wrap.obj
      gnm_wrap.cpp
      gdal_wrap.cpp
      gdalconst_wrap.c
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps &quot;-Ic:\program files\python38\include&quot; &quot;-Ic:\program files\python38\include&quot; -I. &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; /EHsc /Tpextensions/ogr_wrap.cpp /Fobuild\temp.win-amd64-3.8\Release\extensions/ogr_wrap.obj
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps &quot;-Ic:\program files\python38\include&quot; &quot;-Ic:\program files\python38\include&quot; -I. &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt&quot; /EHsc /Tpextensions/osr_wrap.cpp /Fobuild\temp.win-amd64-3.8\Release\extensions/osr_wrap.obj
      ogr_wrap.cpp
      osr_wrap.cpp
      extensions/gdalconst_wrap.c(3018): fatal error C1083: Cannot open include file: 'gdal.h': No such file or directory
      extensions/gdal_wrap.cpp(3191): fatal error C1083: Cannot open include file: 'cpl_port.h': No such file or directory
      extensions/gnm_wrap.cpp(3135): fatal error C1083: Cannot open include file: 'gdal.h': No such file or directory
      extensions/ogr_wrap.cpp(3153): fatal error C1083: Cannot open include file: 'gdal.h': No such file or directory
      extensions/osr_wrap.cpp(3198): fatal error C1083: Cannot open include file: 'cpl_string.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-d1sufozs\\gdal\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-d1sufozs\\gdal\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\Administrator\AppData\Local\Temp\pip-record-q2jdc13d\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\program files\python38\Include\gdal' Check the logs for full command output.
  WARNING: You are using pip version 20.2.3; however, version 21.2.4 is available.
  You should consider upgrading via the 'c:\program files\python38\python.exe -m pip install --upgrade pip' command.
  
  C:\Program Files\Python38&gt;
  </code></pre>