擅长:python、mysql、java
<p>为了进一步解释<a href="https://stackoverflow.com/a/13271241/1762224">Sheena's answer</a>,我需要安装<strong><em>安装工具</em></strong>作为另一个工具的依赖项,例如<strong><em>更多itertools</em></strong>。</p>
<h3>下载</h3>
<p>单击“克隆”或“下载”按钮并选择方法。我把它们放在用户主目录中的<code>dev/py/libs</code>目录中。它们保存在哪里并不重要,因为它们不会安装在那里。</p>
<ul>
<li><strong>设置工具:</strong><a href="https://github.com/pypa/setuptools" rel="nofollow noreferrer">https://github.com/pypa/setuptools</a></li>
<li><strong>更多工具:</strong><a href="https://github.com/erikrose/more-itertools" rel="nofollow noreferrer">https://github.com/erikrose/more-itertools</a></li>
</ul>
<h3>安装安装工具</h3>
<p>您需要在<em>安装工具</em>目录中运行以下命令。</p>
<pre><code>python bootstrap.py
python setup.py install
</code></pre>
<h3>一般依赖项安装</h3>
<p>现在您可以导航到<em>more itertools</em>目录并正常安装。</p>
<ol>
<li>下载软件包</li>
<li>如果是档案,就把它拆开</li>
<li>导航(<code>cd ...</code>)到包含<code>setup.py</code>的目录</li>
<li>如果本文档中包含任何安装说明,请阅读并遵循其他说明</li>
<li>输入:<code>python setup.py install</code></li>
</ol>