pip从URL安装软件包



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

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:UsersDanushAppDataLocalTemppip-req-build-vjgdo2yi'
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

感谢您的帮助。非常感谢。

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

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

通过您正在使用的命令,您正在安装Keras。不使用git-link,只需键入pip install keras即可。Keras是使用TensorFlow自动安装的。以下是Keras的文档:https://pypi.org/project/Keras/

你不能在url中使用pip命令,你需要从一个最终窗口中完成,你可以通过多种方式完成,最简单的是通过git克隆

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

或者你可以使用

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

甚至是卷曲,但为什么不直接去https://github.com/keras-team/keras.git并下载zip fomr github?

最新更新