Cara melakukan instalasi spesifik python versi
1. Buka halaman official Python source code webpage dan pilih versi yang akan diinstall, copy link untuk versi Gzipped source tarball:
![](https://phoenixnap.com/kb/wp-content/uploads/2023/12/copy-link-to-python-source-code.png)
3. Gunakan wget command dan link di atas untuk mendownload Python terbaru
wget https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tgz
![](https://phoenixnap.com/kb/wp-content/uploads/2023/12/download-the-python-source-code.png)
Step 4: Extract file
Pada step ini, extract the tgz file Jalankan perintah
tar -xf Python-3.12.1.tgz
Step 5: Test System and Optimize Python
Sebelum install pastikan melakukan testing dan optimasi python
./configure --enable-optimizations
![](https://phoenixnap.com/kb/wp-content/uploads/2023/12/test-system-and-optimize-python.png)