当前位置:   article > 正文

YOLO V5报错解决(一)_importerror: bad git executable. the git executabl

importerror: bad git executable. the git executable must be specified in one

训练之中,出现迷之错误

ImportError: Bad git executable.
The git executable must be specified in one of the following ways:
    - be included in your $PATH
    - be set via $GIT_PYTHON_GIT_EXECUTABLE
    - explicitly set via git.refresh()

在train.py最上面增加以下代码即可,这是git没有安装或者没有配置浩导致的

  1. import os
  2. os.environ["GIT_PYTHON_REFRESH"] = "quiet"

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/507553
推荐阅读
相关标签
  

闽ICP备14008679号