Python - Git for windows 下使用 交互式命令行

Posted xy14

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python - Git for windows 下使用 交互式命令行相关的知识,希望对你有一定的参考价值。

1. 概述

  1. 尝试在 windows 环境的 git 命令行使用 python3 的交互模式

2. 环境

  1. OS
    1. win10 1905
  2. git
    1. 2.20.1
  3. mintty
    1. 2.9.4
  4. python
    1. 3.7.0

2. 问题

  1. 直接使用
    1. 结果
      1. 无法开启, 会卡住

3. 解决

  1. 命令
    > winpty python

4. 其他

  1. ref
    1. Git for windows的MINGW64终端无法使用Python的解决方法
  2. 疑问
    1. winpty 是干嘛的

以上是关于Python - Git for windows 下使用 交互式命令行的主要内容,如果未能解决你的问题,请参考以下文章