从私人github回购中安装pip wheel wheel版本 [英] pip install wheel version from private github repo

查看:110
本文介绍了从私人github回购中安装pip wheel wheel版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的私人回购打包到一个轮子中.轮子有不同的版本.是否可以通过命令行中的pip并通过requirements.txt文件安装特定版本的仓库回购版本? 从pip文档中未提及我能说的.

I've packaged my private repo into a wheel. There are different versions of the wheel. Is it possible to install a specific wheel version of the repo using pip from the command line and via the requirements.txt file? This feature isn't mentioned in the pip documentation from what I can tell.

我可以使用Github令牌从私有存储库中毫无问题地安装pip软件包.

I can install a pip package from a private repository with no problem, using a Github token.

pip install git+https://$GITHUB_TOKEN@github.com/[username]/[reponame].git

我还可以安装具有特定提交的私有pip软件包:

I can also install a private pip package with a specific commit:

pip install git+https://$GITHUB_TOKEN@github.com/[username]/[reponame].git@[commit_sha]

推荐答案

如果要安装特定的车轮,请给pip该车轮的路径或URL:

If you want to install a specific wheel, you give pip the path or URL for that wheel:

pip install https://example.com/url/of/wheel.whl

这篇关于从私人github回购中安装pip wheel wheel版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆