如何在 Ubuntu 16.04 的 Octave(4.0.0) 中安装统计包?

Ran*_*rix 8 statistical octave 16.04

我试过 >> pkg install -forge statistics ,但它显示

错误:以下依赖项不满足:统计需要 io >= 1.0.18

我现在该怎么办?

Cle*_*leb 9

我通过以下方式安装了八度:

sudo apt-get install octave
Run Code Online (Sandbox Code Playgroud)

然后我跑了

sudo apt-get install octave-statistics
Run Code Online (Sandbox Code Playgroud)

如果您想使用统计包中的函数,则必须使用(从八度提示中):

pkg load statistics
Run Code Online (Sandbox Code Playgroud)

在 Ubuntu 18.04 上这对我来说很好用


小智 3

你应该首先安装io:输入

pkg install -forge io
Run Code Online (Sandbox Code Playgroud)

在八度命令行上。

然后安装统计包,当你想使用它时输入

pkg load statistics
Run Code Online (Sandbox Code Playgroud)

加载它。