Python 在Mac OS 10.8.4上安装PIL时出错
我不知道为什么会出现这个错误。任何帮助都将不胜感激Python 在Mac OS 10.8.4上安装PIL时出错,python,macos,web,python-imaging-library,Python,Macos,Web,Python Imaging Library,我不知道为什么会出现这个错误。任何帮助都将不胜感激 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 我多少记得这个问题。您是否安装了Xcode命令行工具?那治好了我的头痛 你可以在这里找到 从Xcod
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
我多少记得这个问题。您是否安装了Xcode命令行工具?那治好了我的头痛 你可以在这里找到 从Xcode的首选项菜单中,安装命令行工具(下载/组件选项卡) 支持性参考资料:
在Mac电脑上,假设您使用的是自制软件,请键入:
brew install Homebrew/python/pillow
枕头与PIL基本相同
如果python在定位包时遇到问题,请尝试以下两个命令
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选择--安装
可能会有帮助。我确实安装了Xcode命令行工具。这就是为什么它困扰着我。我的同事正在使用osx 10.7,没有任何问题。这可能与此版本有关。您可能希望切换到枕头:--在OSX上,PIL似乎没有得到很好的维护。