我需要安装旧版本的MXNet - 0.7.0,不再通过pip提供。这里提供了旧版本的源代码https://github.com/apache/incubator-mxnet/releases?after=v0.9.3a,但是我无法使用make编译代码:
Makefile:23: mshadow/make/mshadow.mk: No such file or directory
Makefile:24: /home/usr/incubator-mxnet-0.7.0/dmlc-core/make/dmlc.mk: No such file or directory
Makefile:86: /home/usr/incubator-mxnet-0.7.0/ps-lite/make/ps.mk: No such file or directory
make: *** No rule to make target `/home/usr/incubator-mxnet-0.7.0/ps-lite/make/ps.mk'. Stop.
我该如何安装?有没有更简单的方法来安装旧版本的MXNet?
答案 0 :(得分:2)
从源代码安装
从GitHub下载MXNet源代码
$ git clone --recursive https://github.com/apache/incubator-mxnet
$ cd incubator-mxnet
$ git checkout 1.3.0
$ git submodule update --init --recursive
$ make -j USE_OPENCV=1
答案 1 :(得分:1)
您错过了MXNet所依赖的子模块。按照here说明进行操作,但步骤4(下载MXNet源代码并构建MXNet核心共享库)除外,请替换
git clone --recursive https://github.com/apache/incubator-mxnet
使用以下命令:
git clone --no-checkout https://github.com/apache/incubator-mxnet
cd incubator-mxnet
git checkout v0.7.0 -b v0.7.0
git submodule update --init