How do you add a link to requirements.txt?

Question:

I am trying to include the link https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-1.2.0/en_core_web_sm-1.2.0.tar.gz in my requirements.txt, for deployment on Heroku.

All my current requirements are formatted as packages. How do you format a .tar.gz download link when adding it to requirements? I tried -e https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-1.2.0/en_core_web_sm-1.2.0.tar.gz however, that resulting in an error message saying it requires a url beginning with svn+, git+, hg+, or bzr+

The main github page for the model I’m trying to include is located here: https://github.com/explosion/spacy-models/releases/en_core_web_sm-1.2.0

Asked By: hackerman

||

Answers:

You can just put the full HTTPS URL in your requirements file. (-e is only for editable installs.)

Answered By: mipadi
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.