克隆存储库以将 Python 与 Azure 函数结合使用
Posted
技术标签:
【中文标题】克隆存储库以将 Python 与 Azure 函数结合使用【英文标题】:Clone the repository to use Python with Azure functions 【发布时间】:2022-01-22 21:07:27 【问题描述】:试图找出我的 cmd 卡住的问题。
当我尝试运行以下命令以启用虚拟环境时..
cd start
python -m venv .venv
source .venv/bin/activate
这是可行的,但是当我尝试克隆 repo 时,我的 cmd 卡住了,下面是这些命令,这些 repo 也是一个示例。
git clone https://github.com/Azure-Samples/functions-python-pytorch-tutorial.git
cd functions-python-pytorch-tutorial
我的任务是使用 PyTorch。任何帮助将不胜感激。
谢谢。
【问题讨论】:
cmd
标签用于 Microsoft Windows cmd.exe
问题。你在 Windows 上吗?你在运行git-bash
吗? source
命令从何而来?
【参考方案1】:
谢谢Luis 和shaILU。发布您的建议作为帮助其他社区成员的答案。
如果您使用的是git-bash
,您可以尝试运行以下命令:
git config --global credential.provider generic
如果您启用了ssh
,请尝试以下命令:
ssh -T git@github.com
git clone git@github.com:[user]/[repo]
您可以参考git clone hangs on "Cloning into..." using GitBash、Pushing with Windows built-in OpenSSH hangs和Clone new Repository 'hangs' indefinitely
【讨论】:
以上是关于克隆存储库以将 Python 与 Azure 函数结合使用的主要内容,如果未能解决你的问题,请参考以下文章