【问题标题】:Install MxNet from sources on Ubuntu从 Ubuntu 上的源安装 MxNet
【发布时间】:2018-06-24 12:22:23
【问题描述】:

我需要安装旧版本的 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?

【问题讨论】:

    标签: ubuntu mxnet


    【解决方案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

    【讨论】:

      【解决方案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
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2016-11-19
        • 1970-01-01
        • 1970-01-01
        • 2018-08-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多