cygwin +windows 下载android资源
我在 Windows 上使用 cygwin 下载 Android 资源;http://source.android.com/source/downloading.html 但是当我运行 repo init -u https://android.googlesource.com/platform/ manifest -b android-4.0.1_r1
它给了我:
File "/opt/android/bin/repo", line 595, in
main(sys.argv[1:])
File "/opt/android/bin/repo", line 562, in main
_Init(args)
File "/opt/android/bin/repo", line 181, in _Init
_CheckGitVersion()
File "/opt/android/bin/repo", line 210, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
编辑: 原始提问者留下了以下内容作为答案:
我解决了它:我的 cygwin 没有下载 git,所以我下载了 git在cygwin,一切都好
I used cygwin at windows to download android resource as ;http://source.android.com/source/downloading.html but when i run the repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
it give me:
File "/opt/android/bin/repo", line 595, in
main(sys.argv[1:])
File "/opt/android/bin/repo", line 562, in main
_Init(args)
File "/opt/android/bin/repo", line 181, in _Init
_CheckGitVersion()
File "/opt/android/bin/repo", line 210, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
EDIT: The original questioner left the following as an answer:
I solved it: my cygwin did not download git, so I downloaded git in cygwin, all is ok
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
isolveit,因为我的cygwin没有下载git,所以我在cygwin中下载,一切正常
isolveit,because my cygwin not download git,so i download in the cygwin,all is ok