擅长:python、mysql、java
<p>您需要安装<a href="http://effbot.org/imagingbook/imagetk.htm" rel="noreferrer">^{<cd1>}</a>模块。</p>
<p>在debian,ubuntu中,您可以使用以下命令来安装它:</p>
<pre><code>sudo apt-get install python-imaging-tk
</code></pre>
<p><strong>更新</strong></p>
<p>如果您使用的是最新版本的ubuntu(16.04+),则包名已更改。</p>
<ul>
<li><code>python-pil.imagetk</code>(Python 2.x)</li>
<li><code>python3-pil.imagetk</code>(Python 3.x)</li>
</ul>