我在Mountain Lion上使用pip安装Scipy遇到了严重的困难。
我已经尝试过:
sudo pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev
在网上的多个地方都提到过这一点。
这会导致出现以下错误:
ld: library not found for -lgcc
lipo: can't figure out the architecture type of: /var/tmp//ccC2HLVs.out
在错误出现之前,我假设有几个警告(我认为不是很严重)。
有人有什么建议吗?
pip
。下载源代码并使用python setup.py install --user
自行编译。--user
标志将强制在~/.local
中安装,无需使用sudo
。 - Pierre GM