git clone +在Python中安装

Bas*_*asj 1 python git pip

是否有单行快捷方式:

git clone https://github.com/user/mypythonmodule.git
cd mypythonmodule
python setup.py install
cd ..
Run Code Online (Sandbox Code Playgroud)

喜欢

git clone install https://github.com/user/mypythonmodule.git
Run Code Online (Sandbox Code Playgroud)

或者这不存在?

Ste*_*ger 7

如果你使用pip,它支持从git URL安装.

pip文档

"pip目前支持克隆git,git + https和git + ssh"

所以你会这样做

pip install git+https://github.com/user/mypythonmodule.git
Run Code Online (Sandbox Code Playgroud)

  • @StephenPaulger,没有`git +`前缀真的有效吗?对我来说,它似乎必须是`pip install git + https:// github.com/user/mypythonmodule.git` (2认同)