擅长:python、mysql、java
<p>也可以直接在YAML中使用<code>requirements.txt</code>。例如</p>
<pre><code>name: test-env
dependencies:
- python>=3.5
- anaconda
- pip
- pip:
- -r file:requirements.txt
</code></pre>
<p>基本上,任何可以用<code>pip</code>运行的命令都可以在YAML中运行。有关其他功能的展示,请参见<a href="https://github.com/conda/conda/tree/54e4a91d0da4d659a67e3097040764d3a2f6aa16/tests/conda_env/support/advanced-pip" rel="nofollow noreferrer">the Advanced Pip Example</a>。</p>