문제

When I tried sudo pip install PIL and sudo easy_install PIL, they both gave me the following error.

unable to execute clang: No such file or directory

error: command 'clang' failed with exit status 1

I have tried it with brew install libtiff libjpeg webp littlecms beforehand, and with sudo and without sudo, but every time it gives the exact same error.

도움이 되었습니까?

해결책

Fixed the problem by first installing Xcode from the App Store, then installing Command Line Tools from the Downloads section of Xcode's Preferences screen.

Then Try these commands:

% brew install pil
% easy_install pip
% pip install pil
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top