使用requirements.txt安装github仓库的特定版本和标签

发布于 2025-01-10 17:12:13 字数 1200 浏览 0 评论 0原文

我想使用requirements.txt在我的项目中安装这个特定的github包:

https://github.com/explosion/spacy-models/releases/tag/en_core_web_sm-3.2.0

但我不知道该怎么做。我已经尝试过:

git+https://github.com/explosion/spacy-models@releases/tag/en_core_web_sm-3.2.0/v3.2.0#egg=en_core_web_sm-3.2.0

但出现以下错误:

WARNING: Did not find branch or tag 'releases/tag/en_core_web_sm-3.2.0/v3.2.0', assuming revision or ref.
  Running command git checkout -q releases/tag/en_core_web_sm-3.2.0/v3.2.0
  error: pathspec 'releases/tag/en_core_web_sm-3.2.0/v3.2.0' did not match any file(s) known to git.
WARNING: Discarding git+https://github.com/explosion/spacy-models@releases/tag/en_core_web_sm-3.2.0/v3.2.0#egg=en_core_web_sm-3.2.0. Command errored out with exit status 1: git checkout -q releases/tag/en_core_web_sm-3.2.0/v3.2.0 Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement en-core-web-sm-3-2-0 (unavailable) (from versions: none)
ERROR: No matching distribution found for en-core-web-sm-3-2-0 (unavailable)

I want to use requirements.txt to install this specific github package in my project:

https://github.com/explosion/spacy-models/releases/tag/en_core_web_sm-3.2.0

but am not sure how to do it. I have tried:

git+https://github.com/explosion/spacy-models@releases/tag/en_core_web_sm-3.2.0/v3.2.0#egg=en_core_web_sm-3.2.0

but am getting the following error:

WARNING: Did not find branch or tag 'releases/tag/en_core_web_sm-3.2.0/v3.2.0', assuming revision or ref.
  Running command git checkout -q releases/tag/en_core_web_sm-3.2.0/v3.2.0
  error: pathspec 'releases/tag/en_core_web_sm-3.2.0/v3.2.0' did not match any file(s) known to git.
WARNING: Discarding git+https://github.com/explosion/spacy-models@releases/tag/en_core_web_sm-3.2.0/v3.2.0#egg=en_core_web_sm-3.2.0. Command errored out with exit status 1: git checkout -q releases/tag/en_core_web_sm-3.2.0/v3.2.0 Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement en-core-web-sm-3-2-0 (unavailable) (from versions: none)
ERROR: No matching distribution found for en-core-web-sm-3-2-0 (unavailable)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文