gpt4 book ai didi

python - 输出 : terminal attributes: No such device or address in Windows Pycharm debugger

转载 作者:太空狗 更新时间:2023-10-30 02:02:16 24 4
gpt4 key购买 nike

每次我从调试器使用控制台并尝试查看 pandas 对象的输出时,我都会收到一条红色消息

"tput: terminal attributes: No such device or address"

我正在使用 PyCharm 2016.3.2,据我所知,我没有更新任何东西 - 它只是突然开始出现。我附上了调试器的屏幕截图,其中包含有关我的 ipython 和调试器版本的信息。感谢您帮助了解如何摆脱此消息。它似乎同时出现在 Python 控制台和调试器控制台中,但没有出现在 PyCharm 终端中。谢谢。

enter image description here

最佳答案

PyCharm 本身有一个解决方法,不会影响系统的其余部分:

您可以将 PATH 硬编码为在 this menu 下设置的环境的一部分:

  1. 点击菜单运行 -> 编辑/配置...
  2. 当配置窗口打开时,点击 Defaults -> Python。
  3. 在没有 git/cygwin 的情况下,在环境变量下的右侧硬编码 PATH。请参阅下文如何从 cmd 提示符获取该路径

    import os, re; print ';'.join([p for p in os.getenv('PATH').split(';') if not re.search('Git', p)])

  4. 这个 PATH 变量似乎覆盖了系统的路径变量。


    Image of these steps overlaid在 PyCharm 中。

PyCharm Default Debug Configuration


关于python - 输出 : terminal attributes: No such device or address in Windows Pycharm debugger,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42836245/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com