- Download the compressed source tarball from python.org by executing the following wget command:
wget https://www.python.org/ftp/python/3.9.18/Python-3.9.18.tgz
- Unpack the downloaded archive and navigate to the resulting directory:
tar -xvf Python-3.9.18.tgz
cd Python-3.9.18