擅长:python、mysql、java
<p>我为此写了一篇博文(<a href="http://blog.artooro.com/2013/01/04/how-to-install-pil-python-imaging-library-on-mac-os-x-10-8/" rel="nofollow">http://blog.artooro.com/2013/01/04/how-to-install-pil-python-imaging-library-on-mac-os-x-10-8/</a>)</p>
<p>这里有一些简单的说明,可以在苹果本地设置中使用,不需要自制软件或macports或其他任何东西。在</p>
<ol>
<li>从App Store安装Xcode。在</li>
<li>打开Xcode和打开Xcode首选项。在</li>
<li>单击Downloads选项卡,您将看到命令行工具。单击“安装”按钮安装命令行工具。(提供gcc编译PIL)</li>
<li>现在打开终端应用程序,并运行以下命令:</li>
<li><code>sudo easy_install pip</code></li>
<li><code>sudo pip install PIL</code></li>
</ol>