Python中文
首页
教程
问答
标签
搜索
登录
注册
Pipfile.lock关闭
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我正试图在heroku部署一个大型django项目。我安装了Heroku CLI,登录,创建了一个应用程序并运行:</p> <p><code>git push heroku master</code></p> <p>我已经设置了Pipfile和requirements.txt。我添加了runtime.txt来指定我需要Python2.7。这也在Pipfile中。这就是我推给heroku的原因:</p> <pre><code>$ git push heroku master Counting objects: 12159, done. Delta compression using up to 2 threads. Compressing objects: 100% (4853/4853), done. Writing objects: 100% (12159/12159), 20.94 MiB | 1.82 MiB/s, done. Total 12159 (delta 6859), reused 12036 (delta 6751) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected remote: -----> Installing python-3.6.4 remote: -----> Installing pip remote: -----> Installing dependencies with Pipenv 11.8.2… remote: Your Pipfile.lock (3b2ba9) is out of date. Expected: (83a5b4). remote: Aborting deploy. remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy.... remote: remote: ! Push rejected to camp-infinity. remote: To https://git.heroku.com/camp-infinity.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/camp-infinity.git' </code></pre> <p>出于某种原因,它试图安装Python3,而且它也不喜欢我的Pipfile.lock文件。我试过删除它并用pipenv install再次生成它,但这没有改变任何事情。</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>在一个项目中遇到了同样的问题,在你推给Heroku的分支中,运行</p> <pre><code>pipenv lock </code></pre> <p>它将更新Pipfile.lock文件。:)</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
plt.savefig不会覆盖现有文件
8 回答
plt.savefig不保存图像
9 回答
plt.savefig在jupyter笔记本中不起作用
1 回答
plt.savefig在从另一个fi调用时停止工作
7 回答
plt.savefig在调用plt.show之前保存空数字
5 回答
plt.save不创建png文件
7 回答
plt.scatter overlay分类数据帧列
9 回答
Plt.Scatter:如何添加title、xlabel和ylab
7 回答
plt.scatter()绘图与Matplotlib中的plt.plot()绘图类似
4 回答
plt.scatter错误'NoneType'对象在成功运行后没有属性'sqrt'
3 回答
plt.set_title()中的标题字符串有误
3 回答
plt.show()
1 回答
plt.show()不在Jupyter笔记本上渲染任何内容
2 回答
plt.show()不打印plt.plot only plt.scatter
4 回答
plt.show()不显示三维散射图像
3 回答
plt.show()不显示任何内容
7 回答
plt.show()不显示数据,而是保留它供下一个图表使用(spyder)
9 回答
plt.show()使终端挂起
8 回答
plt.show()无法使用此代码
10 回答
plt.show()没有打开新的图形风
7 回答