Alpine linux container or bare installation, simple way as root:
apk add python3
apk add py3-setuptools
apk add py3-pip
You can try to use --update or --no-cache too.
--update
--no-cache