- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在使用通过 Anaconda 在 Windows 10 上安装的 pandas
。
我在 emacs 劣质 Python shell 中运行 IPython 终端。
每次我将 pandas.DataFrame
打印到终端时,我都会收到一条错误消息 tput: unknown terminal "emacs"
。
错误消息之后是正确的输出,所以我希望我可以关闭错误消息。
看起来类似于this question .值得一提的是,我的 PATH 环境变量中确实有 Git/bin,但我不知道这会产生什么影响。
如有任何建议,我们将不胜感激。
最佳答案
我在 Windows 7 下的 Eclipse (Mars 2) 的调试透视图中操作 pandas.DataFrame
时遇到了类似的问题。
当尝试检查 DataFrame
的内容时,控制台将输出:
tput: unknown terminal "emacs"
而该值将显示 (pending)
,并且调试 session 将永远卡住。
我发现 tput
命令确实是 cygwing 提供的 unix 命令:
D:\smouton>where tput
d:\smouton\cygwin64\bin\tput.exe
我设置的解决方法是在启动 Eclipse 之前修改 PATH
变量。这可以通过启动以下批处理文件而不是 Eclipse 可执行文件来方便地完成:
REM Remove reference to "unixy" stuff before calling eclipse
REM This avoids 'tput: unknown terminal "emacs"' error when manipulating pandas dataframe
SET PATH=%PATH:;C:\MinGW\bin;d:\smouton\cygwin64\bin;=;%
REM launch eclipse
START "" "C:\Program Files (x86)\Eclipse\eclipse.exe"
此文件只是从 PATH 中删除 C:\MinGW\bin
和 d:\smouton\cygwin64\bin
,然后启动 eclipse。
我想类似的解决方法也可以解决 OP 的 IPython 问题。
关于python - Pandas 打印 `tput: unknown terminal "emacs”`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36133447/
tput cols、tput lines 和 stty size 之间有区别吗(除了 stty size 在一个字符串中全部返回)? 一个比另一个更便携还是更可靠? 最佳答案 此刻我也在问自己同样的问
我在脚本中使用“tput cols”一切正常,除非窗口最大化。我的脚本能够正确获取任何窗口大小,但是当窗口最大化时,它会得到一个错误的值 (80)。然后我直接在终端中输入“tput cols”,我得到
我有以下 BASH 函数,它接受参数并将它们显示在终端底部的新行中,该行被排除在滚动区域之外: bottomLine() { clear # Get all arguments and
虽然我知道 tput rmcup 从“备用屏幕”(在 man 5 terminfo 中称为“cup 模式”)返回并恢复保存的屏幕,但它确实有重新定位光标的副作用。 因此,如果调用 tput smcup
在 Lua 中,我尝试使用 shell 命令“tput cup foo bar”移动光标,并使用“io.write('foo')”在该位置写入字符串。 os.execute('tput clear')
我正在努力练习制作一个美观整洁的界面。但是,我被困在这个问题上。我试图强调我设法使用此方法完成的用户的输入 echo -n "Title : "; read -p "$(tput smul)" get
我希望使用 tput 对我的 makefile 的输出进行一些格式化.一个例子:如果你简单地输入 echo $(printf '%*s' "${COLUMNS:-$(tput cols)}" '' |
我正在尝试在 Bash 脚本中使用 tput,并尽力避免随机错误涌现。为此,我写了以下行: COLS="$(tput cols 2> /dev/null)" 令我惊讶的是,当我运行它时,COLS 始终
我正在使用语言环境 en_US.UTF8 当使用 bash -v script_name.sh 时,它会得到一个带有单引号的变量 - 下面的示例。已尝试在 securecrt session 上手动设
我的理解是函数 char *tparm(char *str, ...); 只是将给定的字符串 str 转换为扩展的参数化版本,它将是适合与 stdout 输出函数一起使用,例如 printf 或 co
我正在使用通过 Anaconda 在 Windows 10 上安装的 pandas。 我在 emacs 劣质 Python shell 中运行 IPython 终端。 每次我将 pandas.Data
我正在尝试自定义我的 git shell,我发现这很有趣 article但正如您所看到的,它使用 tput 来设置颜色定义,我无法让它在 Windows 上运行,因为 tput 不是 Windows
我想在 Ubuntu 上编译安装 readline 库。 我执行以下操作: wget http://git.savannah.gnu.org/cgit/readline.git/snapshot/re
使用 tput 更改字符串的长度,因此列不对齐。如何解决这个问题? 在 bash 脚本中尝试了以下代码。 B="$(tput bold)" # Bold text N="$(tput sgr0)" #
当我在终端中运行 tput cols 时,它会打印出列数。但是当我运行以下 Rust 程序时: use std::io::process::{Command, ProcessOutput}; fn m
我们有一个由 CRON 运行的 shell 脚本。 shell 脚本依次运行 python 脚本,该脚本从 FTP 服务器下载文件,然后在这些文件上运行 java 日志处理器。这个过程运行得很好,除了
我知道您可以使用转义序列 %{\033[0m%}(代码零)将提示的颜色改回“默认”颜色(通常在提示之后) . 但是用于此的“默认值”是什么? 终端程序本身的默认颜色? 通过 tput setaf $C
我正在使用分布式框架进行性能测试,其中我有 1 台 Controller jmeter 机器和 2 台 jmeter 机器作为负载生成器。我正在尝试从 jenkins 服务器连接所有机器并在 Cont
我在 Windows 上将 PyCharm 与 iPython 结合使用。我在盒子上安装的唯一 Python 是最新的 Anaconda 发行版,Python 3.4 风格。 在使用控制台时,我经常收
我是一名优秀的程序员,十分优秀!