Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/360.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git克隆&x2B;在Python中安装_Python_Git_Pip - Fatal编程技术网

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