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:
brew install Homebrew/python/pillow
Pillow is basically the same as PIL.
Try following 2 commands if python has trouble locating the package.
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
may be can help you.
I somewhat remember this exact problem. Have you installed the Xcode command line tools? That cured my headaches.
You can find it here.. https://developer.apple.com/xcode/
From Xcode's Preferences menu, install the Command Line Tools (Downloads/Components tab).
supporting references: gcc-4.2 failed with exit status 1 I can't install 'pip install pil' in Osx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.