Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 下载山狮10.8.5的PIL/枕头时出错_Python 2.7_Python Imaging Library_Pip_Easy Install_Pillow - Fatal编程技术网

Python 2.7 下载山狮10.8.5的PIL/枕头时出错

Python 2.7 下载山狮10.8.5的PIL/枕头时出错,python-2.7,python-imaging-library,pip,easy-install,pillow,Python 2.7,Python Imaging Library,Pip,Easy Install,Pillow,当我尝试sudo-pip-install-PIL和sudo-easy\u-install-PIL时,他们都给了我以下错误 unable to execute clang: No such file or directory error: command 'clang' failed with exit status 1 我以前用brew安装libtiff libjpeg webp littlecms试过,用sudo试过,没有sudo,但每次都会出现完全相同的错误。首先从应用商店安装,解决了这

当我尝试
sudo-pip-install-PIL
sudo-easy\u-install-PIL
时,他们都给了我以下错误

unable to execute clang: No such file or directory

error: command 'clang' failed with exit status 1

我以前用
brew安装libtiff libjpeg webp littlecms
试过,用
sudo
试过,没有
sudo
,但每次都会出现完全相同的错误。

首先从应用商店安装,解决了这个问题,然后从Xcode首选项屏幕的下载部分安装命令行工具。

然后尝试以下命令:

% brew install pil
% easy_install pip
% pip install pil

什么包是
PIP