Unable to install wradlib in linux

I am unable to install wradlib in linux. It fails with below error.

I am using Python 3.6.8
and pip install wradlib

Any help would be appreciated.

Collecting GDAL
Using cached GDAL-3.5.2.tar.gz (756 kB)
Preparing metadata (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /var/data/tef-radolan-files-download/py_environment/bin/python3 -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-qtr1fvpn/gdal_
3ae86bab99974b4e9b552b72362e69c0/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-qtr1fvpn/gdal_3ae86bab99974b4e9b552b72362e69c0/setup.py’“'”‘;f = getattr(tokenize, ‘"’"‘open’
"’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.
close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ egg_info --egg-base /tmp/pip-pip-egg-info-w6aerc2d
cwd: /tmp/pip-install-qtr1fvpn/gdal_3ae86bab99974b4e9b552b72362e69c0/
Complete output (118 lines):
running egg_info
creating /tmp/pip-pip-egg-info-w6aerc2d/GDAL.egg-info
writing /tmp/pip-pip-egg-info-w6aerc2d/GDAL.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-w6aerc2d/GDAL.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-w6aerc2d/GDAL.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-w6aerc2d/GDAL.egg-info/top_level.txt
writing manifest file ‘/tmp/pip-pip-egg-info-w6aerc2d/GDAL.egg-info/SOURCES.txt’
Traceback (most recent call last):
File “/tmp/pip-install-qtr1fvpn/gdal_3ae86bab99974b4e9b552b72362e69c0/setup.py”, line 105, in fetch_config
p = subprocess.Popen([command, args], stdout=subprocess.PIPE)
File “/usr/lib64/python3.6/subprocess.py”, line 729, in init
restore_signals, start_new_session)
File “/usr/lib64/python3.6/subprocess.py”, line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘…/…/apps/gdal-config’: ‘…/…/apps/gdal-config’

Hi Muru,

Installing with pip can get hard, as not all dependencies have wheels for all systems available. And even that doesn’t prevent you from getting into dependency hell (eg. library version mismatch).

Please see the wradlib docs for more information.

I would recommend to use conda to create Python environments to get out of the way of these dependency issues.

Hi Kai,
Thank you. Yes, You are right. With pip making it hard to install. I will use conda.