我正在尝试使用以下命令安装PIL(Python Imaging Library):sudo pip install pil但我收到以下消息:Downloading/unpacking PIL You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files. Downloading PIL-1.1.7.tar.gz (506kB): 506kB downloaded Running setup.py egg_info for package PIL WARNING: '' not a valid package name; please use only.-separated package names in setup.pyInstalling collected packages: PIL Running setup.py install for PIL WARNING: '' not a valid package name; please use only.-separated package names in setup.py --- using frameworks at /System/Library/Frameworks building '_imaging' extension clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -IlibImaging -I/System/Library/Frameworks/Python.framework/Versions/2.7/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imaging.c -o build/temp.macosx-10.8-intel-2.7/_imaging.o unable to execute clang: No such file or directory error: command 'clang' failed with exit status 1 Complete output from command /usr/bin/python -c "import setuptools;__file__='/private/tmp/pip_build_root/PIL/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-AYrxVD-record/install-record.txt --single-version-externally-managed: WARNING: '' not a valid package name; please use only.-separated package names in setup.pyrunning installrunning build....copying PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.8-intel-2.7running build_ext--- using frameworks at /System/Library/Frameworksbuilding '_imaging' extensioncreating build/temp.macosx-10.8-intel-2.7creating build/temp.macosx-10.8-intel-2.7/libImaging您能帮我安装PIL吗?
4 回答
繁华开满天机
TA贡献1816条经验 获得超4个赞
使用apt install非常简单,使用此命令即可完成
sudo apt-get install python-PIL
要么
sudo pip install pillow
要么
sudo easy_install pillow
添加回答
举报
0/150
提交
取消