小编Mil*_*lad的帖子

执行“package require Expect”时找不到包 Expect

我想对简单的 .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 与预期相矛盾吗?

安装,anaconda路径

command-line bash gnome-terminal expect

5
推荐指数
1
解决办法
3898
查看次数

标签 统计

bash ×1

command-line ×1

expect ×1

gnome-terminal ×1