ERROR: Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH?

问题描述:

使用git命令时:

ERROR: Error [WinError 2] 系统找不到指定的文件。 while executing command git clone -q https://github.com/philferriere/cocoapi.git 'C:\Users\ASUS\AppData\Local\Temp\pip-req-build-ms13oiun'
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

在这里插入图片描述

原因分析:

没有下载git包。

解决方案:

使用conda安装:

conda install git

如果使用pip install git
报错:
ERROR: Could not find a version that satisfies the requirement git
ERROR: No matching distribution found for git

猜你喜欢

转载自blog.csdn.net/qq_41917697/article/details/114328667