将GitHub python包安装到Anaconda,Spyd中

2024-10-01 11:29:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试安装https://github.com/esiivola/GPYgradients/tree/grad_obs.git并在Python的spyder中使用它。我希望这个版本的GPy覆盖我在运行“pip install GPy”时安装的内容。 我试过了“!pip install-e git+https://github.com/esiivola/GPYgradients/tree/grad_obs.git#egg=GPyGradient“与spyder一起使用。它给出了一个错误:命令“git clone-qhttps://github.com/esiivola/GPYgradients/tree/grad_obs.gitC:\Users…\src\gpygradient”失败,None中出现错误代码128。我做错什么了?在


Tags: installpiphttpsgit版本githubcomtree
2条回答

你可以使用焦油球:

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

您可以提供任何其他分支或释放标记,而不是master。在

正确的URL是https://$HOST/repo@commit#egg=modulerepository/esiivola/GPYgradients.git,commit是grad_obs,它是一个分支(可以是标记或提交ID)。在

pip install -e git+https://github.com/esiivola/GPYgradients.git@grad_obs#egg=GPyGradient

相关问题 更多 >