0

抱歉,我对使用 Maven 非常陌生,尝试按照 dl4j 网站上的说明通过以下命令为提供的示例安装 dl4j:

mvn clean install -DskipTests -Dmaven.javadoc.skip=true

这会有所进展,但随后会因错误而终止:

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project dl4j-examples: Compilation failure: Compilation failure:
[ERROR] /Users/nick/Downloads/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/examples/unsupervised/variational/plot/PlotUtil.java:[158,13] cannot find symbol
[ERROR]   symbol:   method setDomainPannable(boolean)
[ERROR]   location: variable plot of type org.jfree.chart.plot.XYPlot
[ERROR] /Users/nick/Downloads/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/examples/unsupervised/variational/plot/PlotUtil.java:[159,13] cannot find symbol
[ERROR]   symbol:   method setRangePannable(boolean)
[ERROR]   location: variable plot of type org.jfree.chart.plot.XYPlot
[ERROR] -> [Help 1]

现在我在类路径可搜索的目录中有 jfreechart 库,那么,有人可以帮我解决上述问题吗?

在 2016 macbook pro 上运行 mac high sierra。

4

1 回答 1

1

无需构建/安装 dl4j 即可运行示例。直接来自dl4j 快速入门

git clone https://github.com/deeplearning4j/dl4j-examples.git
cd dl4j-examples/
mvn clean install
于 2019-07-20T00:03:14.963 回答