Page 27 - Contoh Bagian Buku Praktikum Pemrograman Python
P. 27

Jika belum punya Homebrew, instal dulu:

                /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

               Instal Python:

                brew install python
               b. Verifikasi Instalasi

                python3 --version
               Output contoh:
               Python 3.12.2

               c. Cek pip
                pip3 --version
               d. Jalankan Python

                python3
               Keluar dengan:
               exit()
               3. Linux (Ubuntu/Debian)
               a. Update Repository & Instalasi

                sudo apt update
                sudo apt install python3 python3-pip -y

               b. Verifikasi Instalasi
                python3 --version

               Output:
               Python 3.10.12

               c. Cek pip
                pip3 --version

               d. Jalankan Python

                python3




                                                                                    22
   22   23   24   25   26   27   28   29   30   31   32