赞
踩
训练之中,出现迷之错误
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没有安装或者没有配置浩导致的
- import os
- os.environ["GIT_PYTHON_REFRESH"] = "quiet"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。