zoukankan      html  css  js  c++  java
  • MXNet openblas

    最近需要在另一台折腾出来的电脑上装mxnet做些程序验证。一直倾向与openblas,但这次用的是apt-get安装

    sudo apt-get install libopenblas-dev libopenblas-base
    

    然后make的时候找不到-lopenblas了,用ln -s 之后正常链接。最后启动的时候却出问题了:

    >>> import mxnet as mx
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/local/lib/python2.7/dist-packages/mxnet-0.9.1-py2.7.egg/mxnet/__init__.py", line 7, in <module>
        from .base import MXNetError
      File "/usr/local/lib/python2.7/dist-packages/mxnet-0.9.1-py2.7.egg/mxnet/base.py", line 9, in <module>
        import numpy as np
      File "/usr/lib/python2.7/dist-packages/numpy/__init__.py", line 137, in <module>
        import add_newdocs
      File "/usr/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 9, in <module>
        from numpy.lib import add_newdoc
      File "/usr/lib/python2.7/dist-packages/numpy/lib/__init__.py", line 13, in <module>
        from polynomial import *
      File "/usr/lib/python2.7/dist-packages/numpy/lib/polynomial.py", line 17, in <module>
        from numpy.linalg import eigvals, lstsq
      File "/usr/lib/python2.7/dist-packages/numpy/linalg/__init__.py", line 48, in <module>
        from linalg import *
      File "/usr/lib/python2.7/dist-packages/numpy/linalg/linalg.py", line 23, in <module>
        from numpy.linalg import lapack_lite
    ImportError: /usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv
    

    numpy的问题,看到stack overflow上说是openblaslibatlas冲突了。
    担心把前者卸了不能运行,就卸了后面的,但还是出错,试了下卸载oepnblas,果断import成功,
    发现mxnet也能导入,测试了下,可以运行操作。

  • 相关阅读:
    My SqL 常用命令
    RGB颜色查询对照表
    Android 对话框(Dialog)大全
    【转】Android一些知识点汇总
    Google Maps API v2密钥申请
    蓝牙中文API文档
    IOS 电商类app 第一版架构 改进
    ios 开发小记 (四)
    ios 深度复制 copy & mutablecopy
    CCS绘制成的三角形箭头
  • 原文地址:https://www.cnblogs.com/chenyliang/p/6780752.html
Copyright © 2011-2022 走看看