我想对简单的 .sh 文件使用 autoexpect,但终端显示此错误:
can't find package Expect
while executing
"package require Expect"
(file "/usr/bin/autoexpect" line 6)
Run Code Online (Sandbox Code Playgroud)
我的终端命令是:
autoexpect shell.sh
Run Code Online (Sandbox Code Playgroud)
我删除了expect并再次安装它,但与过去没有区别!
谁能帮我?
这是 的输出dpkg -l | grep tcl; which tclsh; which tclsh8.6; dpkg -S Expect; echo $PATH
。Anaconda 与预期相矛盾吗?