<t>Temporary solution<br/>
<br/>
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. This alias will be valid for the duration of the shell session.<br/>
<br/>
winpty is a Windows software package providing an interface similar to a Unix pty-master for communicating with Windows console programs.<br/>
<br/>
Permanent solution<br/>
<br/>
Add the command to your .bashrc in the users home directory. You can use the CLI or a text editor:<br/>
<br/>
Using CLI<br/>
<br/>
This can be accomplished from git bash like so:<br/>
<br/>
echo "alias python='winpty python.exe'" >> ~/.bashrc<br/>
<br/>
```<br/>
<br/>
which will create `.bashrc` in the current users home directory if the file doesn't exist or append the alias to the end of `.bashrc` if it does.<br/>
<br/>
Using a text editor<br/>
<br/>
Alternatively, you could first create a `.bashrc`. Depending on your file manager, this may be easier to accomplish in git bash like so:<br/>
<br/>
`cd ~<br/>
touch .bashrc<br/>
<br/>
```<br/>
<br/>
At which point you can open `.bashrc` in your prefered text editor and add it there.<br/>
<br/>
To apply the change, either use the command `source .bashrc` or restart the shell.<br/>
<br/>
Update<br/>
<br/>
Newer versions of Git no longer use `.bashrc` but instead use `.bash_profile`. Conda also uses this profile when initializing, so be sure not to overwrite or delete the initialization block. See more here: [Git for Windows doesn't execute my .bashrc file](https://stackoverflow.com/questions/32186840/git-for-windows-doesnt-execute-my-bashrc-file/32189255#32189255).</t>