Numpy构建失败,无法导入多数组 [英] Numpy build fails with cannot import multiarray
问题描述
我在Mavericks上使用自制的python,试图构建numpy 1.8.不幸的是,当我尝试安装numpy时,出现以下错误: https://gist.github.com/ngoldbaum/8592039
I'm using homebrew python on Mavericks, trying to build numpy 1.8. Unfortunately, when I try to install numpy, I get the following error: https://gist.github.com/ngoldbaum/8592039
我可以使用pip install numpy==1.7.2
构建numpy 1.7.2,但是numpy 1.8始终无法使用相同的回溯进行构建.
I'm able to build numpy 1.7.2 with pip install numpy==1.7.2
, but numpy 1.8 always fails to build with the same traceback.
推荐答案
在Mac上:
1.)手动删除这2个文件夹:
1.) remove these 2 folders manually:
rm -rf /usr/local/lib/python2.7/site-packages/numpy/
rm -rf /usr/local/lib/python2.7/site-packages/numpy-1.10.4.dist-info/
注意:pip uninstall numpy
对我不起作用,我必须手动删除numpy.
notice: pip uninstall numpy
didn't work for me, I had to remove numpy manually.
2.)重新安装numpy:pip install numpy
2.) re-install numpy: pip install numpy
这篇关于Numpy构建失败,无法导入多数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!