关于Mac下安装时 Python Imaging Library(Pillow) 报错 error: could not create '/Library/Python/2.7/site-packages/olefile': Permission denied的解决方法之一:
报错详情:(格式调整了一下,以便浏览)
$ pip install Pillow
Collecting Pillow
Downloading Pillow-4.2.1-cp27-cp27m-
macosx_10_6_intel.macosx_10_9_intel.
macosx_10_9_x86_64.
macosx_10_10_intel.macosx_10_10_x86_64.whl (3.5MB)
100% |████████████████████████████████| 3.5MB 8.7kB/s
Collecting olefile (from Pillow)
Downloading olefile-0.44.zip (74kB)
100% |████████████████████████████████| 81kB 22kB/s
Installing collected packages: olefile, Pillow
Running setup.py install for olefile ... error
Complete output from command /usr/bin/python -u -c
"import setuptools, tokenize;
__file__='/private/var/folders/lf/
j4jbbcrn0ql_4d06_zl1y_wm0000gn/T/pip-build-