擅长:python、mysql、java
<p>ez_setup.py脚本可能工作,也可能不工作,这取决于您的环境。如果没有,请按照说明<a href="http://pypi.python.org/pypi/setuptools" rel="nofollow noreferrer">here</a>。特别是,在shell中,确保您安装的python 2.6现在由命令<code>python</code>调用:</p>
<pre><code>$ python
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D
</code></pre>
<p>如果不是,请修改shell的PATH环境变量。然后从<a href="http://pypi.python.org/pypi/setuptools" rel="nofollow noreferrer">here</a>下载setuptools 2.6 python egg,切换到浏览器的下载目录,并运行下载的脚本:</p>
<pre><code>$ cd ~/Downloads # substitute the appropriate directory name
$ sh setuptools-0.6c11-py2.6.egg
</code></pre>