2

octave 文档说 pdist 存在,但我无法在安装在 ubuntu 12.04 上的版本中使用它。

八度版本:

GNU Octave, version 3.6.2
Copyright (C) 2012 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "x86_64-pc-linux-gnu"

我需要为它安装任何软件包吗?

回复后:我尝试安装统计包:

octave:1> pkg install -forge statistics
error: the following dependencies where unsatisfied:
   statistics needs io >= 1.0.18
4

1 回答 1

6

是的。您需要安装统计数据包。如果您查看此处的函数列表,您可以看到函数所属的包。

编辑:该错误消息不言自明。统计包依赖于 io 包。只需安装它,就像安装统计数据包一样。

pkg install -forge io

问题是 io 包本身可能依赖于其他包,因此为什么建议使用包管理器来处理这类东西(Octavepkg尚未自动解决依赖关系,尽管一些工作正在进行中)。由于您使用的是 Ubuntu,只要您没有自己构建 Octave,只需从他们的存储库安装版本:

apt-get install octave-statistics

另一种方法是告诉pkg忽略依赖项并强制安装(如果稍后统计包的某些部分无法正常工作,请不要感到惊讶:

pkg install -forge -nodeps statistics
于 2013-09-18T10:21:59.230 回答