我在我的机器上运行Python 2.7.2。我试图使用easy_install和pip安装numpy,但它们都无法安装成功。所以当我尝试输入以下命令时:
sudo easy_install-2.7 numpy
我会收到如下错误提示:
"The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted. This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available."
另外,当我使用pip时:
sudo pip-2.7 install numpy
我会收到如下错误提示:
RuntimeError: Broken toolchain: cannot link a simple C program
有没有什么解决方法?