我正在一个简单的Turbogears2项目中使用python和git进行开发,目的只是为了好玩。在某一时刻,我想将其部署到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
它产生,所有的依赖之间上市的,我觉得这条线,WHI不都不好看:
...
decorator==3.4.0
## !! Could not determine repository location
example==0.1dev
...
有谁知道是什么问题吗?
无论如何,我已经设法获得了requirements.txt文件,但是我想知道该错误是怎么回事。
您的git储存库没有“来源”,因此pip无法检测到该储存库的远程URL。如https://github.com/pypa/pip/issues/58中所述,这应该已经在PIP中修复。
尝试升级pip或将远程源添加到git存储库
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句