【发布时间】:2026-01-18 05:15:02
【问题描述】:
我正在使用 python 和 git 开发一个简单的 Turbogears2 项目,我只是为了好玩而构建的。在某个时刻,我想将它部署到 Heroku,所以我执行了通常的 pip freeze > requirements.txt 并收到此错误:
Error when trying to get requirement for VCS system Command /usr/bin/git config
remote.origin.url failed with error code 1 in /home/ricardo/myprojs/hellotg22/example,
falling back to uneditable format
在它产生的requirements.txt 中,列出了所有依赖项,我发现这一行,看起来一点也不好看:
...
decorator==3.4.0
## !! Could not determine repository location
example==0.1dev
...
有人知道问题出在哪里吗?
无论如何,我已经设法获得了 requirements.txt 文件,但我想知道这个错误是怎么回事。
【问题讨论】:
标签: python git heroku turbogears turbogears2