繁体   English   中英

如何使用python在Windows上安装Git包

[英]How to install Git package on WIndows with python

我正在尝试从 Domoticz 安装一个插件,我需要通过 python 来安装,但我是 python 终端的新手。 我正在尝试执行以下命令

pip install git+https://mygithublink#egg=name

但我收到以下错误:

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

先谢谢了! 最好的问候马克斯

当您从 git repo pip install 时,pip 会做的第一件事是克隆 git repo,如果您还没有安装 git 工具,这将失败。

@ soaib30 成功了! 谢谢! 安装指南上的下一件事说我需要执行以下命令:

chmod +x plugin.py

但它说:

'chmod' is not recognized as an internal or external command,
operable program or batch file.

我不太确定 chmod 是什么,但从我的研究来看,它表明它改变了前提。 你认为这是必要的吗? 插件如下:( https://www.domoticz.com/wiki/Z-Wave_BatteryLevel_plugin

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM