fatal:配置文件 /tmp/pip-p54sw5gt-build/.git/config 出错于第 1 行;git bad config line 1 in file

最近按照项目要求需要安装facebook的fvcore包,fvcore包的github上指定的安装步骤如下
pip install ‘git+https://github.com/facebookresearch/fvcore’

但出现了下列问题:
fatal: 配置文件 /tmp/pip-p54sw5gt-build/.git/config 出错于第 1 行
Command “git clone -q https://github.com/facebookresearch/fvcore /tmp/pip-p54sw5gt-build” failed with error code 128 in None

然后又试了试git clone好不好使
git clone https://github.com/facebookresearch/slowfast

又出现了下列问题:
正克隆到 ‘slowfast’…
fatal: 配置文件 /home/shaorenjie/slowfast/.git/config 出错于第 1 行
或者是 git bad config line 1 in file

搜遍bing,百度上都是些
git config --global user.name “your name”
git config --global user.email “your email”
删除~/.gitconfig,再重新创建一个这个文件都不太行

以下这篇文章说的有点道理,是和加密系统有关,所以git不太行
https://blog.csdn.net/qq_20299791/article/details/89885748

解决方法:
不要使用git
直接再github上下载文档;如果要安装的话,下载完进入文档文件夹python setup.py install就行了

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值