使用requirements.txt安装github仓库的特定版本和标签
我想使用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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论