Install Python & Git For Windows

Install Git for Windows dari https://gitforwindows.org/

Install Python for Windows dari https://www.python.org/downloads/windows/

Di Git for Windows, lakukan ini untuk ke home dir

cd ~

Lalu buat file .bashrc untuk simpan config bash, isi begini di file .bashrc

alias python=”winpty C:/\Users/\UsernameAnda/\AppData/\Local/\Programs/\Python/\Python311/\python.exe”

Restart Git for Windows

Kalau Anda melakukan install python dari Windows Apps store, path python akan berbeda. Yakni ada di:

%USERPROFILE%\AppData\Local\Microsoft\WindowsApps

Install PATH Windows

Untuk enable Python di Windows command prompt, tambahkan path di Environment Variables

C:\Users\UsernameAnda\AppData\Local\Programs\Python\Launcher\


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *