我已经把我的私人回购打包成了一个轮子。有不同版本的轮子。可以从命令行通过requirements.txt文件使用pip安装特定轮子版本的存储库吗?据我所知,这个特性是isn't mentioned in the pip documentation的。
我可以使用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]
发布于 2018-07-05 07:52:29
如果你想安装一个特定的轮子,你可以给pip那个轮子的路径或URL:
pip install https://example.com/url/of/wheel.whlhttps://stackoverflow.com/questions/51181840
复制相似问题