【发布时间】:2016-12-01 13:35:15
【问题描述】:
我通过 Git-for-Windows 和 CPython35-32 使用 mintty。为什么 Python 认为它没有连接到终端?
$ python -c "import sys; print(sys.stdout.isatty())"
False
有趣的是,我还有一个问题是我无法在 mintty 中启动 Python 的交互式会话。可能和这个问题有关
$ python
<nothingness here...>
【问题讨论】: