I've been having a lot of problems with this install, especially with various unmet dependencies. these are my system infos:
Linux
Python
I was finally able to install it more or less cleanly and get it working across the board and hope it will be usefull for others:
sudo apt install libpq-dev
problem depedency with libpq5
sudo apt install libpq5=12.2-4
sudo apt install libpq-dev
success!
sudo apt install gdal-bin
sudo apt install libgdal-dev
problem with LOTS of dependencies
sudo apt install aptitude
(aptitude can help resolve dependency problems)
sudo aptitude install libgdal-dev
asks how to resolve issues --> I changed to next reccomendation by pressing "." --> then confirmed by pressing "Y" -->success
apt list --installed | grep "gdal"
result:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
gdal-bin/focal,now 3.3.2+dfsg-2~focal2 amd64 [installed]
gdal-data/focal,focal,now 3.3.2+dfsg-2~focal2 all [installed,automatic]
libgdal-dev/focal,now 3.3.2+dfsg-2~focal2 amd64 [installed]
libgdal29/focal,now 3.3.2+dfsg-2~focal2 amd64 [installed,automatic]
python3-gdal/focal,now 3.3.2+dfsg-2~focal2 amd64 [installed,automatic]
check gdal version (should be 3.3.2 or higher if all went well):
gdalinfo --version
to install gdal in a python environment should now be possible:
poetry add gdal==3.3.0
or
pip install gdal==3.3.0
by john, this worked 06.07.2022
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With