|
| 1 | +--- |
| 2 | +layout: tutorial |
| 3 | +title: Instalasi Python |
| 4 | +order: 2 |
| 5 | +--- |
| 6 | + |
| 7 | +Sebelum Anda menggunakan Python, Anda harus menginstalnya terlebih dahulu di sistem operasi komputer Anda. Saat ini Python memiliki versi stabil terbaru yaitu Python **3.13**. Disini kita akan belajar bahasa pemrograman Python menggunakan versi terbaru tersebut. |
| 8 | + |
| 9 | +Cara menginstal python sangat mudah, ikuti panduan dibawah ini. Dibawah adalah panduan cara instal python di platform Linux, Windows dan Mac OS. |
| 10 | + |
| 11 | +### Linux |
| 12 | + |
| 13 | +1. Buka browser, kunjungi [halaman download Python](https://www.python.org/downloads/source/) |
| 14 | +2. Download versi terbaru Python berbentuk file zip untuk Unix/Linux |
| 15 | +3. Ekstrak file zip yang baru saja di download |
| 16 | +4. Edit file Modules/Setup jika Anda ingin kostumisasi Python |
| 17 | +5. Jalankan `./configure` script |
| 18 | +6. `make` |
| 19 | +7. `make install` |
| 20 | + |
| 21 | +Langkah ini akan menginstal Python di lokasi standar `/usr/local/bin` dan library di `/usr/local/lib/pythonXX` dimana `XX` adalah versi terbaru Python yang anda gunakan. |
| 22 | + |
| 23 | +> Untuk beberapa distro (distribution store) dari sistem operasi linux sudah terinstal Python di dalamnya. Jadi Anda tidak perlu menginstalnya lagi. |
| 24 | +
|
| 25 | +### Windows |
| 26 | + |
| 27 | +1. Buka browser, kunjungi [halaman download Python untuk Windows](https://www.python.org/downloads/windows/) |
| 28 | +2. Download installer Python 3.13 (pilih versi 64-bit untuk Windows) |
| 29 | +3. Buka (klik 2x) file installer python yang baru saja di download |
| 30 | +4. Ikuti langkah instalasi sampai selesai |
| 31 | + |
| 32 | +### Mac OS |
| 33 | + |
| 34 | +1. Buka browser, kunjungi [halaman download Python untuk Mac](https://www.python.org/downloads/macos/) |
| 35 | +2. Download versi terbaru Python untuk Macintosh |
| 36 | +3. Buka file yang baru saja di download |
| 37 | +4. Ikuti langkah instalasi sampai selesai |
| 38 | + |
| 39 | +--- |
| 40 | + |
| 41 | +> [Edit tutorial ini](https://github.com/belajarpythoncom/belajarpython.com/blob/master/docs/tutorial/instalasi-python.md) |
| 42 | +
|
| 43 | +<div class="mt-8 inline justify-between gap-x-4 md:flex"> |
| 44 | + <div class="flex justify-center mb-4 md:mb-0"> |
| 45 | + <a href="/tutorial/apa-itu-python" class="text-primary-300 hover:text-primary-300 order-2 flex h-12 items-center rounded-full bg-blue-500 bg-opacity-20 px-8 text-base hover:no-underline md:order-1"> |
| 46 | + <svg xmlns="http://www.w3.org/2000/svg" class="mr-1 h-5 w-5" viewBox="0 0 20 20" fill="currentColor"> |
| 47 | + <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm.707-10.293a1 1 0 00-1.414-1.414l-3 3a1 1 0 000 1.414l3 3a1 1 0 001.414-1.414L9.414 11H13a1 1 0 100-2H9.414l1.293-1.293z" clip-rule="evenodd" /> |
| 48 | + </svg> |
| 49 | + <span class="-mt-0.5">Pengertian Python</span> |
| 50 | + </a> |
| 51 | + </div> |
| 52 | + <div class="order-1 flex justify-center"> |
| 53 | + <a href="/tutorial/menjalankan-python" class="order-1 flex h-12 items-center rounded-full bg-gradient-to-l from-yellow-500 to-yellow-400 px-8 text-base text-black shadow-xl hover:text-black hover:no-underline hover:shadow md:order-2"> |
| 54 | + <span class="-mt-0.5">Menjalankan Python</span> |
| 55 | + <svg xmlns="http://www.w3.org/2000/svg" class="ml-1 h-5 w-5" viewBox="0 0 20 20" fill="currentColor"> |
| 56 | + <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-8.707l-3-3a1 1 0 00-1.414 1.414L10.586 9H7a1 1 0 100 2h3.586l-1.293 1.293a1 1 0 101.414 1.414l3-3a1 1 0 000-1.414z" clip-rule="evenodd" /> |
| 57 | + </svg> |
| 58 | + </a> |
| 59 | + </div> |
| 60 | +</div> |
0 commit comments