Keras pip从URL安装程序包

Keras pip从URL安装程序包,keras,pip,Keras,Pip,如果这是一个愚蠢的问题,我很抱歉,但我是一个绝对的初学者。 我想安装此程序以消除错误: pip3 install git+https://github.com/keras-team/keras.git -U 我不知道该怎么做。尝试在命令提示符下安装时出现此错误: ERROR: Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://gith

如果这是一个愚蠢的问题,我很抱歉,但我是一个绝对的初学者。 我想安装此程序以消除错误:

pip3 install git+https://github.com/keras-team/keras.git -U
我不知道该怎么做。尝试在命令提示符下安装时出现此错误:

ERROR: Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/keras-team/keras.git 'C:\Users\Danush\AppData\Local\Temp\pip-req-build-vjgdo2yi'
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

感谢您的帮助。谢谢。

在您的输出中,很明显没有安装git或者没有设置环境变量

确保首先安装Git,如果它已经安装,
确保环境变量已设置。

您不能在url中使用pip命令,您需要从终端窗口执行此操作,您可以通过多种方式执行此操作最简单的方法是通过git克隆

sudo git clone https://github.com/keras-team/keras.git
或者你可以用

sudo wget https://github.com/keras-team/keras.git

或者甚至使用curl,但为什么不直接转到并下载zip-fomr-github?

从您正在使用的命令,您正在安装Keras。不要使用git-link,只需键入pip-install-keras即可。Keras自动安装TensorFlow。 以下是Keras的文件:

我认为那不是真的。但是在这种情况下,pip无法找到git二进制文件。你每天都会学到一些新东西。我甚至不想尝试,因为还有更好的方法。