在debian wheezy上的virtualenv中安装带有pip的matplotlib时出现GotoBLAS错误
我正试图在debian wheezy上的VirtualNV中安装带有pip的matplotlib。 我得到以下信息:在debian wheezy上的virtualenv中安装带有pip的matplotlib时出现GotoBLAS错误,matplotlib,debian,virtualenv,pip,blas,Matplotlib,Debian,Virtualenv,Pip,Blas,我正试图在debian wheezy上的VirtualNV中安装带有pip的matplotlib。 我得到以下信息: Running setup.py egg_info for package matplotlib GotoBLAS : Architecture Initialization failed. No initialization function found. =====================================================
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。然后,基于此,我使用标志--system site packages
创建了一个环境。
为了测试安装,我尝试在python中导入matplotlib:
>>> import matplotlib
GotoBLAS : Architecture Initialization failed. No initialization function found.
但是我得到了同样的错误:(
更新2:
我发现了。这和KVM上的错误是一样的,就像我一样。也许这个错误与KVM有关?
我刚刚在VirtualBox上运行的debian wheezy中安装了matplotlib,没有任何问题。但是我真的需要在KVM机器上安装它
更新3:
尝试在同一系统中导入numpy时发生相同错误:
>>> import numpy
GotoBLAS : Architecture Initialization failed. No initialization function found.
我终于找到了解决办法!我按照中的程序进行了操作 以下是总结: 安装libatlas3基座:
sudo apt-get install libatlas3-base
使用/usr/lib/atlas base/atlas/liblapack.so.3
中的liblapack3.so.3
作为默认值:
sudo update-alternatives --config libblas.so.3
这对我很有用:
sudo apt-get purge libopenblas-dev