tput:终端属性:Windows Pycharm调试器中没有此类设备或地址 [英] tput: terminal attributes: No such device or address in Windows Pycharm debugger

查看:156
本文介绍了tput:终端属性:Windows Pycharm调试器中没有此类设备或地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  tput:终端属性:无此类设备或地址 

我正在使用PyCharm 2016.3.2根据我的说法,我什么都没更新-它突然开始出现了。我附上调试器的屏幕快照,其中包含有关我的ipython和调试器版本的信息。非常感谢您的帮助,以帮助您了解如何摆脱此信息。它似乎同时出现在Python控制台和调试器控制台中,但没有出现在PyCharm Terminal中。谢谢。



解决方案

PyCharm本身内部有一个变通办法,而不会影响系统的其余部分:



您可以将PATH硬编码为Environment的一部分,在





I am getting a red message every time I use the console from the debugger and try to see the output of a pandas object

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

I am using PyCharm 2016.3.2 and according to me I didn't update anything - it just started to appear all of a sudden. I attach a screenshot of the debugger with info on my ipython and debugger versions. Would appreciate your help to understand how to get rid of this message. It seems to appear both in the Python Console and Debugger Console, but not in the PyCharm Terminal. Thanks.

解决方案

There is a workaround inside PyCharm itself without affecting the rest of the system:

You can hard code PATH as part of Environment set up under this menu:

  1. Click menu Run -> Edit/Configurations...
  2. when the configuration window opens, click on Defaults -> Python.
  3. On the right side under Environment Variables hard code PATH without git/cygwin. See below how to get that path from cmd prompt

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

  4. This PATH variable seems to overwrite system's path variable.


    Image of these steps overlaid in PyCharm.


这篇关于tput:终端属性:Windows Pycharm调试器中没有此类设备或地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆