Upgrade pip Show Written By SBlog on Wednesday, June 3, 2020 | June 03, 2020PIP adalah singkatan dari Pip Installs Python atau PIP Installs Packages yang mana PIP merupakan program untuk manajemen paket di Python. Tugasnya untuk menginstal, menghapus, upgrade paket Python. Paket Pyhon merupakan sebuah modul yang berisi kode-kode python dan isi paket ini bisa kita impor ke dalam program kita untuk digunakan pada program. Selanjutnya kita dapat melakukan upgrade pip dengan cara: - Buka kembali cmd (command prompt) lewat Administrator (Run as administrator) - kemudian ketik : python -m pip install --upgrade pip- Setelah proses selesai kita cek kembali versi pip untuk memastika upgrade terbaru sumber: - https://datatofish.com/upgrade-pip/ - https://www.petanikode.com/python-pip/ Tweet Labels: Pemograman, python (6) Once you retrieved the Python application path, type the following command in the Command Prompt: “cd” followed by your Python application path For our example: C:\>cd C:\Users\Ron\AppData\Local\Programs\Python\Python39 (7) Press Enter, and you’ll see: C:\Users\Ron\AppData\Local\Programs\Python\Python39> (8) To upgrade PIP, type/copy this command, and then press Enter: python -m pip install --upgrade pip This is how the command would look like in the Command Prompt: C:\Users\Ron\AppData\Local\Programs\Python\Python39>python -m pip install ––upgrade pip (9) You’ll notice that the latest version of PIP would be installed: Successfully installed pip-21.1.1 Steps to check the version of PIP in WindowsTo check the version of PIP at any time, you’ll need to use the Python Scripts path, rather than the Python application path. (1) First, type “cd\” to ensure that your starting point has only the drive name: C:\Users\Ron>cd\ (2) Then, locate your Python Scripts path. The Scripts folder should be located within the Python application path. For our example, the Python Scripts path is: C:\Users\Ron\AppData\Local\Programs\Python\Python39\Scripts (3) Type “cd” followed by the Python Scripts path (then press Enter): C:\>cd C:\Users\Ron\AppData\Local\Programs\Python\Python39\Scripts (4) Finally, type the following command to check the version of PIP: pip --version For our example: C:\Users\Ron\AppData\Local\Programs\Python\Python39\Scripts>pip ––version (5) Press Enter, and you’ll see the PIP version: pip 21.1.1 Now, what if you’d like to revert back to a previous version of PIP? You can easily downgrade to a previous version of PIP by following the steps below. Steps to downgrade PIP to a previous version(1) Get to the Python application path. If you are currently set to the Python Scripts path, you can simply type “cd..” (and then press Enter), and you would revert back to the Python application path: C:\Users\Ron\AppData\Local\Programs\Python\Python39> (2) Let’s say that you want to downgrade the PIP version to 18.1 To do that, simply type the following command, and then press Enter: python -m pip install pip==18.1 (3) You should now see the version of PIP that you specified: Successfully installed pip-18.1 Final WordsIf you’re using Anaconda, you may want to check this tutorial that explains how to upgrade PIP in Anaconda. Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris. EB CLI membutuhkan Python 2.7, 3.4, atau yang lebih baru. Jika distribusi Anda tidak datang dengan Python, atau datang dengan versi sebelumnya, pasang Python sebelum memasang 4 dan EB CLI.Untuk memasang Python 3.7 di Linux
Pasang 4 dengan menggunakan penulisan yang disediakan oleh Python Packaging Authority, dan kemudian pasang EB CLI.Untuk memasang 4 dan EB CLI
|