Why does installing numpy using pip fail, while building directly does not?

DGr*_*ady 5 python numpy pip python-3.3

I'm trying to install numpy under Python 3.3.0 running Mac OS 10.7.5 (Lion) and using the compilers that come with Xcode 4.5.1. I installed Python 3 and gfortran using homebrew without any hiccups, but pip3 install numpy fails. Looking at other suggestions online, I tried setting Clang as the C compiler using:

export CC=clang
export CXX=clang
export FFLAGS=-ff2c
Run Code Online (Sandbox Code Playgroud)

但收到了同样的错误.最后一行报告ValueError: underlying buffer has been detached,我发布了完整的输出.

所以,我尝试使用SciPy.org说明直接从源代码构建.这似乎成功了; 构建和安装过程运行完成,尽管他们并不羞于报告警告.完整日志再次作为Gist提供.然后我可以numpy.test('full')从Python 3 运行,虽然有一些我不理解的未封闭文件的警告,但它报告所有测试都通过了.

有没有人知道为什么pip无法构建NumPy,因为我显然可以手动完成而没有问题?

小智 0

看起来 numpy 现在在 pypi 上提供了wheels,它应该正确安装,而无需在使用 pip 时在计算机上本地编译任何内容。