Fix "configure: error: cannot find python-config for /usr/bin/python"

210 Views Asked by At

I'm trying to install SU2 from source on Ubuntu 22.04 and i have a problem regarding the configure command. Running it gives: configure: error: cannot find python-config for /usr/bin/python

However, I have indeed python and python3 but somehow i do not have the python-config. In fact:

which python
/usr/bin/python

which python3
/usr/bin/python3

which python-config
Nothing.

Furthermore, the $PATH should be correct as it contains /usr/bin/python. I think the question may be silly but I haven't found great answer on other threads. Thank you for the help

0

There are 0 best solutions below