来自私有 github 仓库的 pip install wheel 版本

ske*_*r88 8 python git github python-wheel

我已经将我的私人回购打包成一个轮子。有不同版本的轮子。是否可以从命令行使用 pip 和通过 requirements.txt 文件安装特定轮版本的 repo?据我所知,pip 文档中没有提到此功能。

我可以使用 Github 令牌从私有存储库安装 pip 包,没有问题。

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

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

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

jwo*_*der -4

如果要安装特定的轮子,请为 pip 提供该轮子的路径或 URL:

pip install https://example.com/url/of/wheel.whl
Run Code Online (Sandbox Code Playgroud)