【问题标题】:GotoBLAS error when installing matplotlib with pip in a virtualenv on debian wheezy在 debian wheezy 上的 virtualenv 中使用 pip 安装 matplotlib 时出现 GotoBLAS 错误
【发布时间】:2013-12-02 05:52:18
【问题描述】:

我正在尝试在 debian wheezy 的 virtualenv 中安装带有 pip 的 matplotlib。 我收到以下消息:

Running setup.py egg_info for package matplotlib
    GotoBLAS : Architecture Initialization failed. No initialization function found.
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [1.3.1]
                    python: yes [2.7.3 (default, Jan  2 2013, 13:56:14)  [GCC
                            4.7.2]]
                  platform: yes [linux2]

    REQUIRED DEPENDENCIES AND EXTENSIONS
    Complete output from command python setup.py egg_info:
    GotoBLAS : Architecture Initialization failed. No initialization function found.

============================================================================

Edit setup.cfg to change the build options



BUILDING MATPLOTLIB

            matplotlib: yes [1.3.1]

                python: yes [2.7.3 (default, Jan  2 2013, 13:56:14)  [GCC

                        4.7.2]]

              platform: yes [linux2]



REQUIRED DEPENDENCIES AND EXTENSIONS

----------------------------------------

我之前安装了libopenblas-dev。事实上,我设法使用相同的过程在 Ubuntu Gnome 13.10 中安装了 matplotlib。 有什么想法吗?

更新 1:

我终于从分发包中安装了 matplotlib。然后基于this question,我使用标志--system-site-packages 创建了一个环境。 为了测试安装,我尝试在 python 中导入 matplotlib:

>>> import matplotlib
GotoBLAS : Architecture Initialization failed. No initialization function found.

但我得到同样的错误:(。

更新 2:

我找到了this post。这是同样的错误,它在 KVM 上,就像我一样。也许这个错误与KVM有关? 我刚刚安装了 matplotlib,在 VirtualBox 上运行的 debian wheezy 中没有问题。但是我确实需要在KVM机器上安装它。

更新 3:

尝试在同一系统中导入numpy时出现同样的错误:

>>> import numpy
GotoBLAS : Architecture Initialization failed. No initialization function found.

【问题讨论】:

    标签: matplotlib debian virtualenv pip blas


    【解决方案1】:

    我终于找到了解决办法!我按照Daniel Nouri's Blog中的程序操作。

    总结如下:

    安装libatlas3-base:

    sudo apt-get install libatlas3-base
    

    使用/usr/lib/atlas-base/atlas/liblapack.so.3 中的liblapack3.so.3 作为您的默认值:

    sudo update-alternatives --config libblas.so.3
    

    【讨论】:

      【解决方案2】:

      这对我有用:

      sudo apt-get purge libopenblas-dev
      

      【讨论】:

        猜你喜欢
        • 2018-10-14
        • 1970-01-01
        • 1970-01-01
        • 2015-02-22
        • 2012-12-22
        • 2016-02-04
        • 2012-04-07
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多