mac下装点东西可是真费劲。
pillow模块,用于python里的图像处理。
安装的过程L:
1.First make sure you have developer tools installed,if not,use the following command in terminal.
xcode-select –install
2.go to here https://pypi.python.org/pypi/Pillow/2.3.1 downalod the zip file and unzip it.
3.these two lines are extremely important because they will ignore the errors during installation of Pillow, without these two lines the setup cannot be finished (I am using python 2.7 so you may need to change whatever version you use):
sudo sed -i '' -e 's/-mno-fused-madd//g'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.py
sudo rm /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.pyc
4.run command
sudo python setup.py install