2011-11-24 13:51 [错误]File "/usr/lib/python2.7/subprocess.py"

 转自:http://hi.baidu.com/xiandanshiyi/item/0356bdf112a657cca935a256


repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
出现如下错误:
Traceback (most recent call last):
File "/home/eping/bin/repo", line 685, in 
main(sys.argv[1:])
File "/home/eping/bin/repo", line 652, in main
_Init(args)
File "/home/eping/bin/repo", line 184, in _Init
_CheckGitVersion()
File "/home/eping/bin/repo", line 209, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

解决:sudo apt-get install git git-core


你可能感兴趣的:(Android)