Python not working in the command line of git bash

The Solution to Python not working in the command line of git bash is


Just enter this in your git shell on windows - > alias python='winpty python.exe', that is all and you are going to have alias to the python executable. Enjoy

P.S. For permanent alias addition see below,

cd ~
touch .bashrc

then open .bashrc, add your command from above and save the file. You need to create the file through the console or you cannot save it with the proper name. You also need to restart the shell to apply the change.

~ Answered on 2016-04-10 14:05:16


Most Viewed Questions: