标签:
sudo easy_install -f http://www.pythonware.com/products/pil/ Imaging
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/tk.h:78:11: fatal error:
‘X11/Xlib.h‘ file not found
# include <X11/Xlib.h>
sudo pip install -U Pillow
from PIL import ImageGrab def grab_image(addr): im = ImageGrab.grab() im.save(addr,"jpeg") if __name__ == "__main__": grab_image("test.jpeg")
标签:
原文地址:http://www.cnblogs.com/Yellow0-0River/p/5541817.html