mac os下安装Python Image Library (PIL)
来源:互联网 发布:软件测试搭建环境 编辑:程序博客网 时间:2024/05/16 19:41
1、首先需要到 http://www.pythonware.com/products/pil/ 下载PIL包
2、解压tar xvf PIL-1-1.7.tar
3、进入python setup.py install
如果你安装成功了那么恭喜你,如果有错误如下
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found# include <X11/Xlib.h> ^1 error generated.error: command 'cc' failed with exit status 1
那么请继续往下看4、
在终端下 输入一下命令,如果出现permission denied那么需要解锁,在终端下输入sudo -s之后再执行以下命令
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11 /usr/local/include/X11
sudo pip install pil
就这样你应该会看到successfully 安装成功了
5、如果需要在PyCharm上开发,还需要添加PIL包,在PyCharm --> Preference --> Project Interpreter --> + --> 搜索PIL --> Install Package
搞定,可以使用PIL了
另附上一个PIL使用教程
http://www.doc88.com/p-5905990309177.html
0 0
- mac os下安装Python Image Library (PIL)
- PIL(python image library) mac os 扩展处理jpg
- Mac OS下安装python 扩展库 PIL
- Mac OS下安装python 扩展库 PIL
- Mac 下安装python PIL
- Install PIL(Python Image Library) on Mac OSX 10.5
- Mac OS安装PIL
- Mac OS安装PIL
- mac python安装PIL
- PIL(Python Image Library)生成验证码
- PIL(Python Image Library)常用操作简介
- Python Imageing Library(PIL)--The Image Module
- mac python2.7安装PIL.Image模块
- Mac python 无法安装PIL
- python 安装PIL Python Imaging Library
- Mac OS X安装 Scrapy、PIL、BeautifulSoup
- Mac OS X安装 Scrapy、PIL、BeautifulSoup
- python图形处理库PIL(Python Image Library)
- jspsmartupload上传出现com.jspsmart.upload.SmartUploadException: File can't be saved (1120).
- 单例设计模式
- 驾校一点通电脑版客户端 v7.1 最新PC版
- 微软100题总结
- 【HDU】5029 Relief grain 树链剖分+离线标记法
- mac os下安装Python Image Library (PIL)
- js/JQuery匹配逗号隔开的多个手机号写法
- JTable的右击弹出菜单试验
- 从小白进阶ubuntu高手的必经之路—命令
- .C#窗体上怎么显示动态图片如gif
- $cfg['Servers'][$i]['pmadb'] ... 错误 [ 文档 ]
- 《数据结构》物联1131-1132同学链接
- C++点
- 使用Pspice进行电路仿真