python-config auf Alpine Linux installieren

English Deutsch

Es wird empfohlen, Python 3.x zu verwenden, da Python 2.x veraltet ist!

python-config für Python 3.x installieren

Das python3-dev-apk-Paket stellt /usr/bin/python3-config bereit, daher muss ein Symlink von dort nach /usr/bin/python-config erstellt werden:

install_python3_config.sh
apk update
apk add python3-dev
ln -sf /usr/bin/python3-config /usr/bin/python-config

python-config für Python 2.x installieren

Einfach python2-dev installieren, welches /usr/bin/python-config installiert.

install_python2_config.sh
apk update
apk add python2-dev

Check out similar posts by category: Alpine Linux