Python中文
首页
教程
问答
标签
搜索
登录
注册
用pip安装PIL
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我试图使用以下命令安装PIL(Python映像库):</p> <pre><code>sudo pip install pil </code></pre> <p>但我得到了以下信息:</p> <pre><code>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.py Installing 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.py running install running build . . . . copying PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.8-intel-2.7 running build_ext --- using frameworks at /System/Library/Frameworks building '_imaging' extension creating build/temp.macosx-10.8-intel-2.7 creating build/temp.macosx-10.8-intel-2.7/libImaging 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 ---------------------------------------- Cleaning up… </code></pre> <p>你能帮我安装PIL吗??</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>使用apt install非常简单使用这个命令完成它</p> <pre><code>sudo apt-get install python-PIL </code></pre> <p>或者</p> <pre><code>sudo pip install pillow </code></pre> <p>或者</p> <pre><code>sudo easy_install pillow </code></pre>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何提高Djang的410误差
3 回答
如何提高doc2vec模型中两个文档(句子)的余弦相似度?
10 回答
如何提高Docker的日志限制?|[输出已剪裁,达到日志限制100KiB/s]
3 回答
如何提高DQN的性能?
9 回答
如何提高EasyOCR的准确性/预测?
8 回答
如何提高Euler#39项目解决方案的效率?
1 回答
如何提高F1成绩进行分类
10 回答
如何提高FaceNet的准确性
4 回答
如何提高fft处理的精度?
6 回答
如何提高Fibonacci实现对大n的精度?
5 回答
如何提高Flask与psycopg2的连接时间
9 回答
如何提高FosterCauer变换的scipy.signal.invres()的数值稳定性?
9 回答
如何提高gae查询的性能?
3 回答
如何提高GANs用于时间序列预测/异常检测的结果
7 回答
如何提高gevent和tornado组合的性能?
5 回答
如何提高googleappengin请求日志的吞吐量
6 回答
如何提高googlevision文本识别的准确性
10 回答
如何提高groupby/apply效率
2 回答
如何提高Gunicorn中的请求率
5 回答
如何提高G中的文件编码转换
10 回答