installing Fiona and conflicting instillation information for Windows


Eyal Saiet
 

Hello,
I have had rasterio for a while, and thought installing fiona would be equality simple, I was wrong. As of now gdal runs fine in the command line, but  from osgeo import gdal

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-61e0eefce4de> in <module>
----> 1 from osgeo import gdal

ImportError: cannot import name 'gdal' from 'osgeo' (c:\users\est\appdata\local\programs\python\python37\lib\site-packages\osgeo\__init__.py)

Reading conflicting information across the web I am confused what variables and paths should I have my system variable. I have seen
GDAL_DATA=C:\Users\est\AppData\Local\Programs\Python\Python37\Lib\site-packages\osgeo\data\gdal
As well:
GDAL_DATA=C:\Program Files\GDAL\gdal-data
So  I guess I have gdal installed as a program as well a in the gdal wheel
         pip install GDAL-3.1.2-cp37-cp37m-win_amd64.whl
         pip install rasterio-1.1.5-cp37-cp37m-win_amd64.whl
According to the offical instalation documentation I should add C:\Program Files\GDAL\gdal-datato the Path variable in the System Variable as well gdal300.dll I have done that.

I am trying to install the fiona from the downloaded wheel from link
C:\Users\esaiet\Downloads>pip install Fiona-1.8.17-cp37-cp37m-win_amd64.whl
Processing c:\users\esaiet\downloads\fiona-1.8.17-cp37-cp37m-win_amd64.whl
Requirement already satisfied: click>=4.0 in c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages (from Fiona==1.8.17) (7.0)
Requirement already satisfied: cligj>=0.5 in c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages (from Fiona==1.8.17) (0.5.0)
Requirement already satisfied: attrs>=17 in c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages (from Fiona==1.8.17) (19.3.0)
Requirement already satisfied: munch in c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages (from Fiona==1.8.17) (2.5.0)
Requirement already satisfied: six>=1.7 in c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages (from Fiona==1.8.17) (1.13.0)
Requirement already satisfied: click-plugins>=1.0 in c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages (from Fiona==1.8.17) (1.1.1)
Collecting gdal~=3.1.2
  Using cached GDAL-3.1.4.tar.gz (593 kB)
Using legacy 'setup.py install' for gdal, since package 'wheel' is not installed.
Installing collected packages: gdal, Fiona
  Attempting uninstall: gdal
    Found existing installation: gdal 3.0.2
    Uninstalling gdal-3.0.2:
      Successfully uninstalled gdal-3.0.2
    Running setup.py install for gdal ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\esaiet\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\esaiet\\AppData\\Local\\Temp\\pip-install-xf4x5ja5\\gdal\\setup.py'"'"'; __file__='"'"'C:\\Users\\esaiet\\AppData\\Local\\Temp\\pip-install-xf4x5ja5\\gdal\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\esaiet\AppData\Local\Temp\pip-record-6q_z7sht\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\esaiet\appdata\local\programs\python\python37\Include\gdal'
         cwd: C:\Users\esaiet\AppData\Local\Temp\pip-install-xf4x5ja5\gdal\
    Complete output (52 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    copying gdal.py -> build\lib.win-amd64-3.7
    copying ogr.py -> build\lib.win-amd64-3.7
    copying osr.py -> build\lib.win-amd64-3.7
    copying gdalconst.py -> build\lib.win-amd64-3.7
    copying gdalnumeric.py -> build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\osgeo
    copying osgeo\gdal.py -> build\lib.win-amd64-3.7\osgeo
    copying osgeo\gdalconst.py -> build\lib.win-amd64-3.7\osgeo
    copying osgeo\gdalnumeric.py -> build\lib.win-amd64-3.7\osgeo
    copying osgeo\gdal_array.py -> build\lib.win-amd64-3.7\osgeo
    copying osgeo\gnm.py -> build\lib.win-amd64-3.7\osgeo
    copying osgeo\ogr.py -> build\lib.win-amd64-3.7\osgeo
    copying osgeo\osr.py -> build\lib.win-amd64-3.7\osgeo
    copying osgeo\__init__.py -> build\lib.win-amd64-3.7\osgeo
    Fixing build\lib.win-amd64-3.7\gdal.py build\lib.win-amd64-3.7\ogr.py build\lib.win-amd64-3.7\osr.py build\lib.win-amd64-3.7\gdalconst.py build\lib.win-amd64-3.7\gdalnumeric.py build\lib.win-amd64-3.7\osgeo\gdal.py build\lib.win-amd64-3.7\osgeo\gdalconst.py build\lib.win-amd64-3.7\osgeo\gdalnumeric.py build\lib.win-amd64-3.7\osgeo\gdal_array.py build\lib.win-amd64-3.7\osgeo\gnm.py build\lib.win-amd64-3.7\osgeo\ogr.py build\lib.win-amd64-3.7\osgeo\osr.py build\lib.win-amd64-3.7\osgeo\__init__.py
    Skipping optional fixer: ws_comma
    Fixing build\lib.win-amd64-3.7\gdal.py build\lib.win-amd64-3.7\ogr.py build\lib.win-amd64-3.7\osr.py build\lib.win-amd64-3.7\gdalconst.py build\lib.win-amd64-3.7\gdalnumeric.py build\lib.win-amd64-3.7\osgeo\gdal.py build\lib.win-amd64-3.7\osgeo\gdalconst.py build\lib.win-amd64-3.7\osgeo\gdalnumeric.py build\lib.win-amd64-3.7\osgeo\gdal_array.py build\lib.win-amd64-3.7\osgeo\gnm.py build\lib.win-amd64-3.7\osgeo\ogr.py build\lib.win-amd64-3.7\osgeo\osr.py build\lib.win-amd64-3.7\osgeo\__init__.py
    Skipping optional fixer: ws_comma
    running build_ext
    building 'osgeo._gdal' extension
    building 'osgeo._gdalconst' extension
    building 'osgeo._osr' extension
    building 'osgeo._ogr' extension
    building 'osgeo._gnm' extension
    building 'osgeo._gdal_array' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\extensions
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\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 -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpextensions/osr_wrap.cpp /Fobuild\temp.win-amd64-3.7\Release\extensions/osr_wrap.obj
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\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 -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpextensions/gnm_wrap.cpp /Fobuild\temp.win-amd64-3.7\Release\extensions/gnm_wrap.obj
    osr_wrap.cpp
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\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 -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcextensions/gdalconst_wrap.c /Fobuild\temp.win-amd64-3.7\Release\extensions/gdalconst_wrap.obj
    gnm_wrap.cpp
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\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 -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpextensions/ogr_wrap.cpp /Fobuild\temp.win-amd64-3.7\Release\extensions/ogr_wrap.obj
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\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 -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpextensions/gdal_array_wrap.cpp /Fobuild\temp.win-amd64-3.7\Release\extensions/gdal_array_wrap.obj
    gdalconst_wrap.c
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\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 -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\include -Ic:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpextensions/gdal_wrap.cpp /Fobuild\temp.win-amd64-3.7\Release\extensions/gdal_wrap.obj
    ogr_wrap.cpp
    gdal_array_wrap.cpp
    gdal_wrap.cpp
    extensions/gdalconst_wrap.c(3018): fatal error C1083: Cannot open include file: 'gdal.h': No such file or directory
    extensions/gdal_array_wrap.cpp(3144): 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
    extensions/gnm_wrap.cpp(3135): fatal error C1083: Cannot open include file: 'gdal.h': No such file or directory
    extensions/ogr_wrap.cpp(3149): fatal error C1083: Cannot open include file: 'gdal.h': No such file or directory
    extensions/gdal_wrap.cpp(3189): fatal error C1083: Cannot open include file: 'cpl_port.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
  Rolling back uninstall of gdal
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\gdal-3.0.2.dist-info\
   from c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\~dal-3.0.2.dist-info
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\osgeo\
   from c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\~-geo
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\lib\site-packages\osr.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-g4nk5v0p\osr.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\epsg_tr.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\epsg_tr.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\esri2wkt.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\esri2wkt.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gcps2vec.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gcps2vec.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gcps2wld.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gcps2wld.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal2tiles.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal2tiles.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal2xyz.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal2xyz.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal_auth.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal_auth.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal_calc.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal_calc.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal_edit.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal_edit.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal_fillnodata.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal_fillnodata.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal_merge.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal_merge.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal_pansharpen.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal_pansharpen.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal_polygonize.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal_polygonize.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal_proximity.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal_proximity.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal_retile.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal_retile.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdal_sieve.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdal_sieve.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdalchksum.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdalchksum.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdalcompare.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdalcompare.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdalident.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdalident.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdalimport.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdalimport.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\gdalmove.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\gdalmove.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\mkgraticule.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\mkgraticule.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\ogrmerge.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\ogrmerge.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\pct2rgb.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\pct2rgb.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\__pycache__\rgb2pct.cpython-37.pyc
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-oc7aaljf\rgb2pct.cpython-37.pyc
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\epsg_tr.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\epsg_tr.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\esri2wkt.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\esri2wkt.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gcps2vec.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gcps2vec.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gcps2wld.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gcps2wld.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal2tiles.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal2tiles.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal2xyz.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal2xyz.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal_auth.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal_auth.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal_calc.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal_calc.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal_edit.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal_edit.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal_fillnodata.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal_fillnodata.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal_merge.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal_merge.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal_pansharpen.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal_pansharpen.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal_polygonize.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal_polygonize.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal_proximity.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal_proximity.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal_retile.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal_retile.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdal_sieve.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdal_sieve.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdalchksum.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdalchksum.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdalcompare.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdalcompare.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdalident.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdalident.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdalimport.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdalimport.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\gdalmove.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\gdalmove.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\mkgraticule.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\mkgraticule.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\ogrmerge.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\ogrmerge.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\pct2rgb.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\pct2rgb.py
  Moving to c:\users\esaiet\appdata\local\programs\python\python37\scripts\rgb2pct.py
   from C:\Users\esaiet\AppData\Local\Temp\pip-uninstall-547oer88\rgb2pct.py
ERROR: Command errored out with exit status 1: 'c:\users\esaiet\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\esaiet\\AppData\\Local\\Temp\\pip-install-xf4x5ja5\\gdal\\setup.py'"'"'; __file__='"'"'C:\\Users\\esaiet\\AppData\\Local\\Temp\\pip-install-xf4x5ja5\\gdal\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\esaiet\AppData\Local\Temp\pip-record-6q_z7sht\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\esaiet\appdata\local\programs\python\python37\Include\gdal' Check the logs for full command output.



Thanks Eyal

Join main@fiona.groups.io to automatically receive all group messages.