Python在用Briefcase构建项目时提示git错误;但是我单独访问报错连接可以连接,开了Fastgithub工具。
报错内容如下:
│ C:\Users\K_127\AppData\Local\Programs\Python\Python313\Lib\site-packages\briefcase\commands\base.py:980 in update_cookiecutter_cache │
│ │
│ 977 │ │ │ │ │ # any partial remnants of this initial clone. │
│ 978 │ │ │ │ │ # If we're getting a GitError, we know the directory must exist. │
│ 979 │ │ │ │ │ self.tools.shutil.rmtree(cached_template) │
│ > 980 │ │ │ │ │ raise BriefcaseCommandError( │
│ 981 │ │ │ │ │ │ f"Unable to clone repository {template!r}.\n" │
│ 982 │ │ │ │ │ │ "\n" │
│ 983 │ │ │ │ │ │ "This may be because your computer is offline, or " │
│ │
│ ┌────────────────────────────────────────────────────── locals ──────────────────────────────────────────────────────┐ │
│ │ branch = 'v0.3.20' │ │
│ │ cached_template = WindowsPath('C:/Users/K_127/AppData/Local/BeeWare/briefcase/Cache/templates/briefcase-template') │ │
│ │ self = <briefcase.commands.new.NewCommand object at 0x0000022672A59D30> │ │
│ │ template = 'https://github.com/beeware/briefcase-template' │ │
│ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
BriefcaseCommandError: Unable to clone repository 'https://github.com/beeware/briefcase-template'.
This may be because your computer is offline, or because the repository URL is incorrect.
请问该如何处理。