问题来源:using MultivariateStats 报错:ERROR: LoadError: UndefVarError: pairwise! not defined。
- 打开MultivariateStats.jl后发现开头有:using StatsBase: SimpleCovariance, CovarianceEstimator, RegressionModel, AbstractDataTransform, pairwise!
- 我已经早已安装过StatsBase包,我尝试了一下,加载StatsBase后,却找不到pairwise!函数。
julia> using StatsBase
help?> pairwise!
search:
Couldn't find pairwise!
Perhaps you meant pairs
No documentation found.
Binding pairwise! does not exist.
-
.julia\packages\StatsBase目录下有3个版本的StatsBase,0.32.2,0.33.14,0.33.21,但在pkg环境下st后发现使用版本为0.32.2,update StatsBase并没有作用,尝试删掉StatsBase,然后add StatsBase@0.33.21,报错:
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Extremes [fe3fe864]:
Extremes [fe3fe864] log:
├─possible versions are: 0.1.0-0.3.0 or uninstalled
├─restricted to versions * by an explicit requirement, leaving only versions 0.1.0-0.3.0
├─restricted by compatibility requirements with DataFrames [a93c6f00] to versions: 0.1.1-0.3.0 or uninstalled, leaving only versions: 0.1.1-0.3.0
│ └─DataFrames [a93c6f00] log:
│ ├─possible versions are: 0.11.7-1.4.4 or uninstalled
│ ├─restricted to versions * by an explicit requirement, leaving only versions 0.11.7-1.4.4
│ ├─restricted by compatibility requirements with RData [df47a6cb] to versions: 0.13.0-1.4.4
│ │ └─RData [df47a6cb] log:
│ │ ├─possible versions are: 0.5.0-1.0.0 or uninstalled
│ │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.5.0-1.0.0
│ │ └─restricted by compatibility requirements with RDatasets [ce6b1742] to versions: 0.5.0-0.8.3
│ │ └─RDatasets [ce6b1742] log:
│ │ ├─possible versions are: 0.5.0-0.7.7 or uninstalled
│ │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.5.0-0.7.7
│ │ └─restricted by compatibility requirements with DataFrames [a93c6f00] to versions: 0.6.3-0.7.7 or uninstalled, leaving only versions: 0.6.3-0.7.7
│ │ └─DataFrames [a93c6f00] log: see above
│ ├─restricted by compatibility requirements with Extremes [fe3fe864] to versions: [0.17.0-0.21.8, 1.0.0-1.4.4]
│ │ └─Extremes [fe3fe864] log: see above
│ └─restricted by compatibility requirements with StatsBase [2913bbd2] to versions: 0.19.1-1.4.4 or uninstalled, leaving only versions: [0.19.1-0.21.8, 1.0.0-1.4.4]
│ └─StatsBase [2913bbd2] log:
│ ├─possible versions are: 0.24.0-0.33.21 or uninstalled
│ └─restricted to versions 0.33.21 by an explicit requirement, leaving only versions 0.33.21
├─restricted by compatibility requirements with Distributions [31c24e10] to versions: 0.2.0-0.3.0 or uninstalled, leaving only versions: 0.2.0-0.3.0
│ └─Distributions [31c24e10] log:
│ ├─possible versions are: 0.16.0-0.25.80 or uninstalled
│ ├─restricted to versions * by an explicit requirement, leaving only versions 0.16.0-0.25.80
│ └─restricted by compatibility requirements with StatsBase [2913bbd2] to versions: 0.23.2-0.25.80 or uninstalled, leaving only versions: 0.23.2-0.25.80
│ └─StatsBase [2913bbd2] log: see above
└─restricted by compatibility requirements with ClimateTools [4f4ee721] to versions: 0.1.0-0.1.2 — no versions left
└─ClimateTools [4f4ee721] log:
├─possible versions are: 0.9.0-0.23.1 or uninstalled
├─restricted to versions * by an explicit requirement, leaving only versions 0.9.0-0.23.1
└─restricted by compatibility requirements with ClimatePlots [b71d359b] to versions: [0.16.0-0.18.3, 0.20.0-0.22.0]
└─ClimatePlots [b71d359b] log:
├─possible versions are: 0.1.0-0.4.2 or uninstalled
└─restricted to versions * by an explicit requirement, leaving only versions 0.1.0-0.4.2
这种情况下怎么办? julia包之间的依赖有什么方法处理?