Git 2.5.1's bash console doesn't open python interpreter

后端 未结 8 1701
小鲜肉
小鲜肉 2021-01-31 08:56

If I do it in CMD, it works without issues, but if I try it in Git Bash it doesn\'t work. I like to use Git Bash as my only console, but I can\'t do that if it doesn\'t work wit

8条回答
  •  死守一世寂寞
    2021-01-31 09:37

    You need to explicit python interactive mode: python -i

    You can define an alias in your .bashrc: alias python='python -i', but doing this, you will not be able to run a script file (i.e.: python script.py).

    Found here: Using Windows Python from Cygwin

提交回复
热议问题