2017-09-16 183 views
0

我想安装https://github.com/esiivola/GPYgradients/tree/grad_obs.git并在Anaconda的spyder中使用它。我希望此版本的GPy在运行“pip install GPy”时覆盖我安装的内容。 我已经尝试过“!pip install -e git + https://github.com/esiivola/GPYgradients/tree/grad_obs.git#egg=GPyGradient”,拥有spyder。它给了我一个错误:命令“git clone -q https://github.com/esiivola/GPYgradients/tree/grad_obs.git C:\ Users ... \ src \ gpygradient”失败,错误代码为128。我究竟做错了什么?将GitHub python软件包安装到蟒蛇中,Spyder

+0

您提供的任何链接都不能解决吗? – Simon

回答

0

正确的URL是https://$HOST/[email protected]#egg=modulerepository/esiivola/GPYgradients.git,提交是grad_obs这是一个分支(可能是一个标签或提交ID)。

pip install -e git+https://github.com/esiivola/[email protected]_obs#egg=GPyGradient 
1

可以使用焦油球:

pip install https://github.com/<user>/<repo>/archive/master.tar.gz 

取而代之的高手,你可以给其他任何分支机构或发布标志。

+0

所以在我的情况下,这将是!pip安装https://github.com/esiivola/GPYgradients/tree/grad_obs/archive/master.tar.gz这个? –