擅长:python、mysql、java
<p>您应该提供:</p>
<ol>
<li><code>Pipfile</code>和相应的<code>Pipfile.lock</code></li>
</ol>
<p>或者</p>
<ol start=“2”>
<li><code>requirements.txt</code>(和可选的<code>runtime.txt</code>)</li>
</ol>
<p>如果您使用的是<code>Pipfile</code>,那么<code>git rm requirements.txt runtime.txt</code>并确保<code>git add Pipfile Pipfile.lock</code>。<code>git commit</code>然后尝试<code>git push</code>到heroku。</p>
<p><a href="https://devcenter.heroku.com/articles/python-runtimes" rel="nofollow noreferrer">https://devcenter.heroku.com/articles/python-runtimes</a></p>