git克隆&x2B;在Python中安装
是否有一行捷径用于:git克隆&x2B;在Python中安装,python,git,pip,Python,Git,Pip,是否有一行捷径用于: git clone https://github.com/user/mypythonmodule.git cd mypythonmodule python setup.py install cd .. 像 或者这不存在吗?如果使用pip,它支持从git URL安装 从 pip目前支持通过git、git+https和git+ssh进行克隆 你会这么做吗 pip install git+https://github.com/user/mypythonmodule.git g
git clone https://github.com/user/mypythonmodule.git
cd mypythonmodule
python setup.py install
cd ..
像
或者这不存在吗?如果使用pip,它支持从git URL安装 从 pip目前支持通过git、git+https和git+ssh进行克隆 你会这么做吗
pip install git+https://github.com/user/mypythonmodule.git
git clone&&python mypythonmodule/setup.py install使用pypi:pip安装mypythonmodule@PeterClause:我尝试过,但不起作用,因为当前路径与您的solution@ImanMirzadeh:此类git项目并非始终处于启用状态Pypi@Basj:是的!但他们通常是:DAwesome,我不知道。很好的解决方案。我承认,我首先想避免要求目标用户安装
pip
,因为在我的Raspbian喘息声中:apt get install python pip
安装pip+。。。。Python 2.7之上的Python 2.6…:太难看了!Python2.7是Raspbian Jessie的默认版本吗?或者,如果您有一个python 2.7 easy_安装,您可以使用它而不是apt安装pip。@StephenPaulger,如果没有git+
前缀,这真的有效吗?对我来说,它似乎必须是pip-install-git+https://github.com/user/mypythonmodule.git
pip install git+https://github.com/user/mypythonmodule.git