[英]Error installing PIL on Mac OS 10.8.4
我不確定為什么會收到此錯誤。 任何幫助,將不勝感激。
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
在Mac上,假設您使用的是Homebrew,請輸入:
brew install Homebrew/python/pillow
枕頭與PIL基本相同。
如果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-安裝
可能可以幫助您。
我有點記得這個確切的問題。 您是否已安裝Xcode命令行工具? 那使我頭痛。
您可以在這里找到它。.https ://developer.apple.com/xcode/
從Xcode的“首選項”菜單中,安裝命令行工具(“下載/組件”選項卡)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.