python - Heroku:更改 requirements.txt 后出现 "directory exists"错误

标签 python django heroku

对于我使用的其中一个库,我正在尝试从 mercurial 存储库切换到 git。不幸的是,当我尝试使用新的 requirements.txt 文件推送项目时,我得到了这个:

Obtaining django-storages from git+https://github.com/richleland/django-storages/#egg=django_storages (from -r requirements.txt (line 2))
  Directory /tmp/build_3lujzy9ddaetm/.heroku/src/django-storages already exists, and is not a git clone.
  The plan is to install the git repository https://github.com/richleland/django-storages/
What to do?  (i)gnore, (w)ipe, (b)ackup Exception:
Traceback (most recent call last):
...
EOFError: EOF when reading a line

push -f 强制它以相同的消息结束。我该如何进行这项工作?

最佳答案

Heroku 团队通过推出新的 Python buildpack 解决了这个问题,使用 wipe 作为这种冲突的默认值。

关于python - Heroku:更改 requirements.txt 后出现 "directory exists"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11374451/

相关文章:

python - 检测邻近词

python - 如何在父子关系上组合两个数据帧(介于连接和合并之间)

python - pdf 文件未保存在 Django 中

python - 如何配置 Django 在本地使用 Heroku Dev Postgre?

android - com.parse.ParseRequest$ParseRequestException : bad json response (When I moved parse server to Heroku) 错误

python - 无法通过 Selenium 进行正确的屏幕截图

python - 如何通过应用引擎上传sitemap.xml?

python - Heroku 中推送 Flask 应用程序时出错 : sqlite3 missing

python - 在 django 中提供静态 index.html

Django Order_by 空白