[英]Error installing PIL on Mac OS 10.8.4
I am not sure why I am getting this error. 我不确定为什么会收到此错误。 Any help would be appreciated.
任何帮助,将不胜感激。
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1
On a Mac, assuming you are using Homebrew, type: 在Mac上,假设您使用的是Homebrew,请输入:
brew install Homebrew/python/pillow
Pillow is basically the same as PIL. 枕头与PIL基本相同。
Try following 2 commands if python has trouble locating the package. 如果python无法找到包,请尝试执行以下2条命令。
mkdir -p ~/Library/Python/2.7/lib/python/site-packages
echo '/usr/local/lib/python2.7/site-packages' > ~/Library/Python/2.7/lib/python/site-packages/homebrew.pth
xcode-select --install xcode-select-安装
may be can help you. 可能可以帮助您。
I somewhat remember this exact problem. 我有点记得这个确切的问题。 Have you installed the Xcode command line tools?
您是否已安装Xcode命令行工具? That cured my headaches.
那使我头痛。
You can find it here.. https://developer.apple.com/xcode/ 您可以在这里找到它。.https ://developer.apple.com/xcode/
From Xcode's Preferences menu, install the Command Line Tools (Downloads/Components tab). 从Xcode的“首选项”菜单中,安装命令行工具(“下载/组件”选项卡)。
supporting references: gcc-4.2 failed with exit status 1 I can't install 'pip install pil' in Osx 支持参考: gcc-4.2失败,退出状态为1 我无法在Osx中安装'pip install pil'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.