flaviostutz / sentinelloader

Sentinel-2 satellite tiles images downloader from Copernicus. Minimizes data download and combines multiple tiles to return a single area of interest.
MIT License
44 stars 18 forks source link

Error During Installation #21

Closed MAdil45 closed 2 years ago

MAdil45 commented 2 years ago

I am trying to install via using 'Pip install sentinelloader". However, I am continuously coming across this error. I have tried downgrading python, try installing Gdal separately but couldn't success. Could please anyone if look into this and provide some feedback regarding the solution. Thanks Screenshot from 2022-08-24 22-06-07

MAdil45 commented 2 years ago

Never mind. I have installed it. There was a problem with gdal.

quillaja commented 9 months ago

@MAdil45

Never mind. I have installed it. There was a problem with gdal.

What did you do to solve this issue? I'm having a similar issue with gdal, even though I just installed the VS2022 C++ build tools.

...
      copying gdal-utils\osgeo_utils\samples\__init__.py -> build\lib.win-amd64-cpython-311\osgeo_utils\samples
      running build_ext
      building 'osgeo._gdal' extension
      building 'osgeo._osr' extension
      building 'osgeo._ogr' extension
      building 'osgeo._gdalconst' extension
      building 'osgeo._gnm' 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: Could not build wheels for gdal, which is required to install pyproject.toml-based projects
MAdil45 commented 9 months ago

@quillaja Try: conda install conda-forge gdal

Then install libstdc++ in Conda Environment by using: conda install -c conda-forge libstdcxx-ng

It worked for me