我有一个带 Numpy 的 Python 3.2 系统,但我让 Homebrew 升级到 Python 3.3,所以我必须重新安装所有包。这对于使用 this very large output 的 pip3 install numpy
失败.
您能提出修复建议吗?
或者,我怎样才能恢复原来的工作安装?
最佳答案
我在没有pip
的情况下在Python3.3下成功安装了Numpy:
git clone https://github.com/numpy/numpy.git
python3 setup.py build
python3 setup.py install
另一种选择是通过 Homebrew 降级 Python,虽然不是首选。您可以通过以下方式来回切换:
brew switch python3 <version>
关于python - 在 OSX 10.8 上为 Python 3.3 安装 numpy 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14224804/