Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Failed building wheel for gdal #150

Open
apiccalu opened this issue Aug 12, 2024 · 6 comments
Open

ERROR: Failed building wheel for gdal #150

apiccalu opened this issue Aug 12, 2024 · 6 comments

Comments

@apiccalu
Copy link

Python 3.9.13, CUDA 11.6, Visual studio build in.

Downloading gdal-3.9.1.tar.gz
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for gdal
Failed to build gdal
ERROR: Could not build wheels for gdal, which is required to install pyproject.toml-based projects

Screenshot 2024-08-12 150252

@alemuntoni
Copy link
Member

Could you please paste here the full log?

@apiccalu
Copy link
Author

Here is the full log ! Cheers

C:\TagLab-main>python.exe install.py
Found NVCC version: 11.6
Torch 1.13.1 for CUDA 11.6
Requirement already satisfied: msvc-runtime in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (14.40.33807)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Requirement already satisfied: wheel in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (0.44.0)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Requirement already satisfied: pyqt5 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (5.15.11)
Requirement already satisfied: PyQt5-sip<13,>=12.15 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from pyqt5) (12.15.0)
Requirement already satisfied: PyQt5-Qt5<5.16.0,>=5.15.2 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from pyqt5) (5.15.2)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Requirement already satisfied: scikit-image in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (0.24.0)
Requirement already satisfied: scipy>=1.9 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image) (1.13.1)
Requirement already satisfied: imageio>=2.33 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image) (2.34.2)
Requirement already satisfied: numpy>=1.23 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image) (1.26.4)
Requirement already satisfied: packaging>=21 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image) (24.1)
Requirement already satisfied: pillow>=9.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image) (10.4.0)
Requirement already satisfied: lazy-loader>=0.4 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image) (0.4)
Requirement already satisfied: tifffile>=2022.8.12 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image) (2024.8.10)
Requirement already satisfied: networkx>=2.8 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image) (3.2.1)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Requirement already satisfied: scikit-learn in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (1.5.1)
Requirement already satisfied: joblib>=1.2.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn) (1.4.2)
Requirement already satisfied: numpy>=1.19.5 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn) (1.26.4)
Requirement already satisfied: threadpoolctl>=3.1.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn) (3.5.0)
Requirement already satisfied: scipy>=1.6.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn) (1.13.1)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Requirement already satisfied: pandas in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (2.2.2)
Requirement already satisfied: pytz>=2020.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from pandas) (2024.1)
Requirement already satisfied: numpy>=1.22.4 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from pandas) (1.26.4)
Requirement already satisfied: tzdata>=2022.7 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from pandas) (2024.1)
Requirement already satisfied: python-dateutil>=2.8.2 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from pandas) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Requirement already satisfied: opencv-python in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (4.10.0.84)
Requirement already satisfied: numpy>=1.19.3 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from opencv-python) (1.26.4)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Requirement already satisfied: matplotlib in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (3.9.1.post1)
Requirement already satisfied: pyparsing>=2.3.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (3.1.2)
Requirement already satisfied: numpy>=1.23 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (1.26.4)
Requirement already satisfied: pillow>=8 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (10.4.0)
Requirement already satisfied: packaging>=20.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (24.1)
Requirement already satisfied: kiwisolver>=1.3.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (1.4.5)
Requirement already satisfied: importlib-resources>=3.2.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (6.4.0)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (1.2.1)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (4.53.1)
Requirement already satisfied: cycler>=0.10 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (0.12.1)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib) (2.9.0.post0)
Requirement already satisfied: zipp>=3.1.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from importlib-resources>=3.2.0->matplotlib) (3.20.0)
Requirement already satisfied: six>=1.5 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from python-dateutil>=2.7->matplotlib) (1.16.0)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Requirement already satisfied: albumentations in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (1.4.13)
Requirement already satisfied: eval-type-backport in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from albumentations) (0.2.0)
Requirement already satisfied: PyYAML in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from albumentations) (6.0.2)
Requirement already satisfied: albucore>=0.0.13 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from albumentations) (0.0.13)
Requirement already satisfied: scipy>=1.10.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from albumentations) (1.13.1)
Requirement already satisfied: numpy>=1.24.4 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from albumentations) (1.26.4)
Requirement already satisfied: pydantic>=2.7.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from albumentations) (2.8.2)
Requirement already satisfied: scikit-image>=0.21.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from albumentations) (0.24.0)
Requirement already satisfied: opencv-python-headless>=4.9.0.80 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from albumentations) (4.10.0.84)
Requirement already satisfied: typing-extensions>=4.9.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from albumentations) (4.12.2)
Requirement already satisfied: tomli>=2.0.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from albucore>=0.0.13->albumentations) (2.0.1)
Requirement already satisfied: annotated-types>=0.4.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from pydantic>=2.7.0->albumentations) (0.7.0)
Requirement already satisfied: pydantic-core==2.20.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from pydantic>=2.7.0->albumentations) (2.20.1)
Requirement already satisfied: lazy-loader>=0.4 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image>=0.21.0->albumentations) (0.4)
Requirement already satisfied: imageio>=2.33 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image>=0.21.0->albumentations) (2.34.2)
Requirement already satisfied: networkx>=2.8 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image>=0.21.0->albumentations) (3.2.1)
Requirement already satisfied: packaging>=21 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image>=0.21.0->albumentations) (24.1)
Requirement already satisfied: pillow>=9.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image>=0.21.0->albumentations) (10.4.0)
Requirement already satisfied: tifffile>=2022.8.12 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from scikit-image>=0.21.0->albumentations) (2024.8.10)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Requirement already satisfied: shapely in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (2.0.5)
Requirement already satisfied: numpy<3,>=1.14 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from shapely) (1.26.4)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Requirement already satisfied: pycocotools in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (2.0.8)
Requirement already satisfied: matplotlib>=2.1.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from pycocotools) (3.9.1.post1)
Requirement already satisfied: numpy in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from pycocotools) (1.26.4)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (2.9.0.post0)
Requirement already satisfied: importlib-resources>=3.2.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (6.4.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (4.53.1)
Requirement already satisfied: cycler>=0.10 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (0.12.1)
Requirement already satisfied: pillow>=8 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (10.4.0)
Requirement already satisfied: pyparsing>=2.3.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (3.1.2)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (1.2.1)
Requirement already satisfied: packaging>=20.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (24.1)
Requirement already satisfied: kiwisolver>=1.3.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (1.4.5)
Requirement already satisfied: zipp>=3.1.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from importlib-resources>=3.2.0->matplotlib>=2.1.0->pycocotools) (3.20.0)
Requirement already satisfied: six>=1.5 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from python-dateutil>=2.7->matplotlib>=2.1.0->pycocotools) (1.16.0)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu116
Requirement already satisfied: torch==1.13.1+cu116 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (1.13.1+cu116)
Requirement already satisfied: torchvision==0.14.1+cu116 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (0.14.1+cu116)
Requirement already satisfied: typing-extensions in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from torch==1.13.1+cu116) (4.12.2)
Requirement already satisfied: requests in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from torchvision==0.14.1+cu116) (2.32.3)
Requirement already satisfied: numpy in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from torchvision==0.14.1+cu116) (1.26.4)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from torchvision==0.14.1+cu116) (10.4.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from requests->torchvision==0.14.1+cu116) (2024.7.4)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from requests->torchvision==0.14.1+cu116) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from requests->torchvision==0.14.1+cu116) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\apic8610\appdata\local\programs\python\python39\lib\site-packages (from requests->torchvision==0.14.1+cu116) (2.2.2)
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the 'C:\Users\apic8610\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
Traceback (most recent call last):
File "C:\TagLab-main\install.py", line 275, in
gdal_is_installed = importutil.find_spec("osgeo.gdal")
File "C:\Users\apic8610\AppData\Local\Programs\Python\Python39\lib\importlib\util.py", line 94, in find_spec
parent = import(parent_name, fromlist=['path'])
ModuleNotFoundError: No module named 'osgeo'

@cappelletto
Copy link
Contributor

Could you try installing the GDAL version provided by the Windows OSGeo package (GDAL-3.4.0-cp39-cp39-win_amd64.whl) and then running python.exe install.py again

You can download the Windows binaries using conda or vcpkg, more info here: https://gdal.org/download.html#windows
Or trying to install it using pip: https://pypi.org/project/GDAL/

If the requirement is satisfied, then the installer should not try to build it locally (which is what is failing based on your original error message)

@ryanneve
Copy link

I had the same issue. Tried pip install gdal and got:

 pip install gdal
Collecting gdal
  Downloading gdal-3.9.2.tar.gz (840 kB)
     ---------------------------------------- 840.6/840.6 kB 7.4 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: gdal
  Building wheel for gdal (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for gdal (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [126 lines of output]
      Using numpy 2.1.0
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\osgeo
      copying osgeo\gdal.py -> build\lib.win-amd64-cpython-310\osgeo

CUT a bunch of copies

      copying gdal-utils\osgeo_utils\samples\__init__.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      running egg_info
      writing gdal-utils\GDAL.egg-info\PKG-INFO
      writing dependency_links to gdal-utils\GDAL.egg-info\dependency_links.txt
      writing entry points to gdal-utils\GDAL.egg-info\entry_points.txt
      writing requirements to gdal-utils\GDAL.egg-info\requires.txt
      writing top-level names to gdal-utils\GDAL.egg-info\top_level.txt
      reading manifest file 'gdal-utils\GDAL.egg-info\SOURCES.txt'
      writing manifest file 'gdal-utils\GDAL.egg-info\SOURCES.txt'
      running build_ext
      building 'osgeo._gdal' extension
      building 'osgeo._gdalconst' extension
      building 'osgeo._ogr' extension
      building 'osgeo._gnm' extension
      building 'osgeo._gdal_array' extension
      building 'osgeo._osr' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gdal
Failed to build gdal
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (gdal)

I downloaded and installed Build Tools (installer), then installed C++ Build Tools core features, 2022 Redistributable Update, and core desktop features.

I still get the same error. Does it have something to do with this statement "In order to enable numpy-based raster support, libgdal and its development headers must be installed "

@ryanneve
Copy link

I tried installing the wheel (GDAL-3.8.4-cp310-cp310-win_amd64.whl ) as you suggested. It installed successfully.
Re-running python install.py failed. here's the full log:

 pip install .\GDAL-3.8.4-cp310-cp310-win_amd64.whl
Processing d:\taglab-main\gdal-3.8.4-cp310-cp310-win_amd64.whl
Installing collected packages: GDAL
Successfully installed GDAL-3.8.4
PS D:\TagLab-main> python install.py
Found NVCC version: 11.6
Torch 1.13.1 for CUDA 11.6
Requirement already satisfied: msvc-runtime in c:\program files\python310\lib\site-packages (14.40.33807)
Requirement already satisfied: wheel in c:\program files\python310\lib\site-packages (0.44.0)
Requirement already satisfied: pyqt5 in c:\program files\python310\lib\site-packages (5.15.11)
Requirement already satisfied: PyQt5-sip<13,>=12.15 in c:\program files\python310\lib\site-packages (from pyqt5) (12.15.0)
Requirement already satisfied: PyQt5-Qt5<5.16.0,>=5.15.2 in c:\program files\python310\lib\site-packages (from pyqt5) (5.15.2)
Requirement already satisfied: scikit-image in c:\program files\python310\lib\site-packages (0.24.0)
Requirement already satisfied: numpy>=1.23 in c:\program files\python310\lib\site-packages (from scikit-image) (1.26.4)
Requirement already satisfied: scipy>=1.9 in c:\program files\python310\lib\site-packages (from scikit-image) (1.14.1)
Requirement already satisfied: networkx>=2.8 in c:\program files\python310\lib\site-packages (from scikit-image) (3.3)
Requirement already satisfied: pillow>=9.1 in c:\program files\python310\lib\site-packages (from scikit-image) (10.4.0)
Requirement already satisfied: imageio>=2.33 in c:\program files\python310\lib\site-packages (from scikit-image) (2.35.1)
Requirement already satisfied: tifffile>=2022.8.12 in c:\program files\python310\lib\site-packages (from scikit-image) (2024.8.10)
Requirement already satisfied: packaging>=21 in c:\program files\python310\lib\site-packages (from scikit-image) (24.1)
Requirement already satisfied: lazy-loader>=0.4 in c:\program files\python310\lib\site-packages (from scikit-image) (0.4)
Requirement already satisfied: scikit-learn in c:\program files\python310\lib\site-packages (1.5.1)
Requirement already satisfied: numpy>=1.19.5 in c:\program files\python310\lib\site-packages (from scikit-learn) (1.26.4)
Requirement already satisfied: scipy>=1.6.0 in c:\program files\python310\lib\site-packages (from scikit-learn) (1.14.1)
Requirement already satisfied: joblib>=1.2.0 in c:\program files\python310\lib\site-packages (from scikit-learn) (1.4.2)
Requirement already satisfied: threadpoolctl>=3.1.0 in c:\program files\python310\lib\site-packages (from scikit-learn) (3.5.0)
Requirement already satisfied: pandas in c:\program files\python310\lib\site-packages (2.2.2)
Requirement already satisfied: numpy>=1.22.4 in c:\program files\python310\lib\site-packages (from pandas) (1.26.4)
Requirement already satisfied: python-dateutil>=2.8.2 in c:\program files\python310\lib\site-packages (from pandas) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in c:\program files\python310\lib\site-packages (from pandas) (2024.1)
Requirement already satisfied: tzdata>=2022.7 in c:\program files\python310\lib\site-packages (from pandas) (2024.1)
Requirement already satisfied: six>=1.5 in c:\program files\python310\lib\site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)
Requirement already satisfied: opencv-python in c:\program files\python310\lib\site-packages (4.10.0.84)
Requirement already satisfied: numpy>=1.21.2 in c:\program files\python310\lib\site-packages (from opencv-python) (1.26.4)
Requirement already satisfied: matplotlib in c:\program files\python310\lib\site-packages (3.9.2)
Requirement already satisfied: contourpy>=1.0.1 in c:\program files\python310\lib\site-packages (from matplotlib) (1.2.1)
Requirement already satisfied: cycler>=0.10 in c:\program files\python310\lib\site-packages (from matplotlib) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in c:\program files\python310\lib\site-packages (from matplotlib) (4.53.1)
Requirement already satisfied: kiwisolver>=1.3.1 in c:\program files\python310\lib\site-packages (from matplotlib) (1.4.5)
Requirement already satisfied: numpy>=1.23 in c:\program files\python310\lib\site-packages (from matplotlib) (1.26.4)
Requirement already satisfied: packaging>=20.0 in c:\program files\python310\lib\site-packages (from matplotlib) (24.1)
Requirement already satisfied: pillow>=8 in c:\program files\python310\lib\site-packages (from matplotlib) (10.4.0)
Requirement already satisfied: pyparsing>=2.3.1 in c:\program files\python310\lib\site-packages (from matplotlib) (3.1.2)
Requirement already satisfied: python-dateutil>=2.7 in c:\program files\python310\lib\site-packages (from matplotlib) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in c:\program files\python310\lib\site-packages (from python-dateutil>=2.7->matplotlib) (1.16.0)
Requirement already satisfied: albumentations in c:\program files\python310\lib\site-packages (1.4.14)
Requirement already satisfied: numpy>=1.24.4 in c:\program files\python310\lib\site-packages (from albumentations) (1.26.4)
Requirement already satisfied: scipy>=1.10.0 in c:\program files\python310\lib\site-packages (from albumentations) (1.14.1)
Requirement already satisfied: scikit-image>=0.21.0 in c:\program files\python310\lib\site-packages (from albumentations) (0.24.0)
Requirement already satisfied: PyYAML in c:\program files\python310\lib\site-packages (from albumentations) (6.0.2)
Requirement already satisfied: typing-extensions>=4.9.0 in c:\program files\python310\lib\site-packages (from albumentations) (4.12.2)
Requirement already satisfied: pydantic>=2.7.0 in c:\program files\python310\lib\site-packages (from albumentations) (2.8.2)
Requirement already satisfied: albucore>=0.0.13 in c:\program files\python310\lib\site-packages (from albumentations) (0.0.13)
Requirement already satisfied: eval-type-backport in c:\program files\python310\lib\site-packages (from albumentations) (0.2.0)
Requirement already satisfied: opencv-python-headless>=4.9.0.80 in c:\program files\python310\lib\site-packages (from albumentations) (4.10.0.84)
Requirement already satisfied: tomli>=2.0.1 in c:\program files\python310\lib\site-packages (from albucore>=0.0.13->albumentations) (2.0.1)
Requirement already satisfied: annotated-types>=0.4.0 in c:\program files\python310\lib\site-packages (from pydantic>=2.7.0->albumentations) (0.7.0)
Requirement already satisfied: pydantic-core==2.20.1 in c:\program files\python310\lib\site-packages (from pydantic>=2.7.0->albumentations) (2.20.1)
Requirement already satisfied: networkx>=2.8 in c:\program files\python310\lib\site-packages (from scikit-image>=0.21.0->albumentations) (3.3)
Requirement already satisfied: pillow>=9.1 in c:\program files\python310\lib\site-packages (from scikit-image>=0.21.0->albumentations) (10.4.0)
Requirement already satisfied: imageio>=2.33 in c:\program files\python310\lib\site-packages (from scikit-image>=0.21.0->albumentations) (2.35.1)
Requirement already satisfied: tifffile>=2022.8.12 in c:\program files\python310\lib\site-packages (from scikit-image>=0.21.0->albumentations) (2024.8.10)
Requirement already satisfied: packaging>=21 in c:\program files\python310\lib\site-packages (from scikit-image>=0.21.0->albumentations) (24.1)
Requirement already satisfied: lazy-loader>=0.4 in c:\program files\python310\lib\site-packages (from scikit-image>=0.21.0->albumentations) (0.4)
Requirement already satisfied: shapely in c:\program files\python310\lib\site-packages (2.0.6)
Requirement already satisfied: numpy<3,>=1.14 in c:\program files\python310\lib\site-packages (from shapely) (1.26.4)
Requirement already satisfied: pycocotools in c:\program files\python310\lib\site-packages (2.0.8)
Requirement already satisfied: matplotlib>=2.1.0 in c:\program files\python310\lib\site-packages (from pycocotools) (3.9.2)
Requirement already satisfied: numpy in c:\program files\python310\lib\site-packages (from pycocotools) (1.26.4)
Requirement already satisfied: contourpy>=1.0.1 in c:\program files\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (1.2.1)
Requirement already satisfied: cycler>=0.10 in c:\program files\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in c:\program files\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (4.53.1)
Requirement already satisfied: kiwisolver>=1.3.1 in c:\program files\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (1.4.5)
Requirement already satisfied: packaging>=20.0 in c:\program files\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (24.1)
Requirement already satisfied: pillow>=8 in c:\program files\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (10.4.0)
Requirement already satisfied: pyparsing>=2.3.1 in c:\program files\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (3.1.2)
Requirement already satisfied: python-dateutil>=2.7 in c:\program files\python310\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in c:\program files\python310\lib\site-packages (from python-dateutil>=2.7->matplotlib>=2.1.0->pycocotools) (1.16.0)
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu116
Requirement already satisfied: torch==1.13.1+cu116 in c:\program files\python310\lib\site-packages (1.13.1+cu116)
Requirement already satisfied: torchvision==0.14.1+cu116 in c:\program files\python310\lib\site-packages (0.14.1+cu116)
Requirement already satisfied: typing-extensions in c:\program files\python310\lib\site-packages (from torch==1.13.1+cu116) (4.12.2)
Requirement already satisfied: numpy in c:\program files\python310\lib\site-packages (from torchvision==0.14.1+cu116) (1.26.4)
Requirement already satisfied: requests in c:\program files\python310\lib\site-packages (from torchvision==0.14.1+cu116) (2.32.3)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\program files\python310\lib\site-packages (from torchvision==0.14.1+cu116) (10.4.0)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\program files\python310\lib\site-packages (from requests->torchvision==0.14.1+cu116) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\program files\python310\lib\site-packages (from requests->torchvision==0.14.1+cu116) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\program files\python310\lib\site-packages (from requests->torchvision==0.14.1+cu116) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in c:\program files\python310\lib\site-packages (from requests->torchvision==0.14.1+cu116) (2024.7.4)
GET RASTERIO FROM URL: http://taglab.isti.cnr.it/wheels/rasterio/rasterio-1.2.10-cp310-cp310-win_amd64.whl
Processing d:\taglab-main\rasterio-1.2.10-cp310-cp310-win_amd64.whl
Collecting gdal~=3.4.1 (from rasterio==1.2.10)
  Using cached GDAL-3.4.3.tar.gz (757 kB)
  Preparing metadata (setup.py) ... done
Collecting affine (from rasterio==1.2.10)
  Using cached affine-2.4.0-py3-none-any.whl.metadata (4.0 kB)
Collecting attrs (from rasterio==1.2.10)
  Using cached attrs-24.2.0-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: certifi in c:\program files\python310\lib\site-packages (from rasterio==1.2.10) (2024.7.4)
Collecting click>=4.0 (from rasterio==1.2.10)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting cligj>=0.5 (from rasterio==1.2.10)
  Using cached cligj-0.7.2-py3-none-any.whl.metadata (5.0 kB)
Requirement already satisfied: numpy in c:\program files\python310\lib\site-packages (from rasterio==1.2.10) (1.26.4)
Collecting snuggs>=1.4.1 (from rasterio==1.2.10)
  Using cached snuggs-1.4.7-py3-none-any.whl.metadata (3.4 kB)
Collecting click-plugins (from rasterio==1.2.10)
  Using cached click_plugins-1.1.1-py2.py3-none-any.whl.metadata (6.4 kB)
Requirement already satisfied: setuptools in c:\program files\python310\lib\site-packages (from rasterio==1.2.10) (73.0.1)
Collecting colorama (from click>=4.0->rasterio==1.2.10)
  Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Requirement already satisfied: pyparsing>=2.1.6 in c:\program files\python310\lib\site-packages (from snuggs>=1.4.1->rasterio==1.2.10) (3.1.2)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached cligj-0.7.2-py3-none-any.whl (7.1 kB)
Using cached snuggs-1.4.7-py3-none-any.whl (5.4 kB)
Using cached affine-2.4.0-py3-none-any.whl (15 kB)
Using cached attrs-24.2.0-py3-none-any.whl (63 kB)
Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Building wheels for collected packages: gdal
  Building wheel for gdal (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [118 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\osgeo
      copying osgeo\gdal.py -> build\lib.win-amd64-cpython-310\osgeo
      copying osgeo\gdalconst.py -> build\lib.win-amd64-cpython-310\osgeo
      copying osgeo\gdalnumeric.py -> build\lib.win-amd64-cpython-310\osgeo
      copying osgeo\gdal_array.py -> build\lib.win-amd64-cpython-310\osgeo
      copying osgeo\gnm.py -> build\lib.win-amd64-cpython-310\osgeo
      copying osgeo\ogr.py -> build\lib.win-amd64-cpython-310\osgeo
      copying osgeo\osr.py -> build\lib.win-amd64-cpython-310\osgeo
      copying osgeo\utils.py -> build\lib.win-amd64-cpython-310\osgeo
      copying osgeo\__init__.py -> build\lib.win-amd64-cpython-310\osgeo
      creating build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal2tiles.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal2xyz.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdalattachpct.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdalcompare.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdalmove.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_calc.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_edit.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_fillnodata.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_merge.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_pansharpen.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_polygonize.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_proximity.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_retile.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\gdal_sieve.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\ogrmerge.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\pct2rgb.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\rgb2pct.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      copying gdal-utils\osgeo_utils\__init__.py -> build\lib.win-amd64-cpython-310\osgeo_utils
      creating build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\array_util.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\base.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\batch_creator.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\color_palette.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\color_table.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\extent_util.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\gdal_argparse.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\numpy_util.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\osr_util.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\progress.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\raster_creation.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\rectangle.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\util.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      copying gdal-utils\osgeo_utils\auxiliary\__init__.py -> build\lib.win-amd64-cpython-310\osgeo_utils\auxiliary
      creating build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\assemblepoly.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\build_jp2_from_xml.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\classify.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\crs2crs2grid.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\densify.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\dump_jp2.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\epsg_tr.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\esri2wkt.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\fft.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\fix_gpkg.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gcps2ogr.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gcps2vec.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gcps2wld.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal2grd.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalchksum.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalcopyproj.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalfilter.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalident.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalimport.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdalinfo.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdallocationinfo.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_auth.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_cp.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_create_pdf.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_ls.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_lut.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_mkdir.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_remove_towgs84.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_rm.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_rmdir.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_vrtmerge.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\gdal_zip.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\get_soundg.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\histrep.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\hsv_merge.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\jpeg_in_tiff_extract.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\load2odbc.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\loslas2ntv2.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\magphase.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\make_fuzzer_friendly_archive.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\mkgraticule.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogr2ogr.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogr2vrt.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogrinfo.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogrupdate.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogr_build_junction_table.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogr_dispatch.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\ogr_layer_algebra.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\rel.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\tigerpoly.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\tile_extent_from_raster.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\tolatlong.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\validate_cloud_optimized_geotiff.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\validate_gpkg.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\validate_jp2.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\val_repl.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\vec_tr.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\vec_tr_spat.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\wcs_virtds_params.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      copying gdal-utils\osgeo_utils\samples\__init__.py -> build\lib.win-amd64-cpython-310\osgeo_utils\samples
      running build_ext
      building 'osgeo._gdal' extension
      building 'osgeo._gdalconst' extension
      building 'osgeo._ogr' extension
      building 'osgeo._osr' extension
      building 'osgeo._gnm' extension
      building 'osgeo._gdal_array' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gdal
  Running setup.py clean for gdal
Failed to build gdal
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (gdal)
Traceback (most recent call last):
  File "D:\TagLab-main\install.py", line 295, in <module>
    subprocess.check_call([sys.executable, "-m", "pip", "install", filename_rasterio])
  File "C:\Program Files\Python310\lib\subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Program Files\\Python310\\python.exe', '-m', 'pip', 'install', 'rasterio-1.2.10-cp310-cp310-win_amd64.whl']' returned non-zero exit status 1.

@cappelletto
Copy link
Contributor

Ok, I can try replicating this during the weekend on my Windows machine, but here are some bits that drew my attention:

  • The effectively installed version of GDAL is 3.8.4 (from the suggested wheel)
  • Then, rasterio is asking for a different version: Collecting gdal~=3.4.1 (from rasterio==1.2.10)
  • Which then triggers the previously found error, as it fails to build. It is not detecting MSVC >= 14.0 (this might be a separate problem)

Now, one option could be trying to install gdal 3.4.1 for Python 3.10 from any available wheel file (I haven't checked this yet), or modifying the setup.py to allow it to install another version of rasterio that is compatible with the currently installed gdal version (3.8.4). I am not sure about this last bit but worth trying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants