0
votes

When I push my django app to heroku master, I get an error about the version of python

I already added a file runtime.txt with python-3.7.2 and added python-3.7.2 to the requirements file.

Collecting python-3.7.0 (from -r /tmp/build_56ed5608dd6394891e58f29a1dd224c2/requirements.txt (line 5)) remote: Could not find a version that satisfies the requirement python-3.7.0 (from -r /tmp/build_56ed5608dd6394891e58f29a1dd224c2/requirements.txt (line 5)) (from versions: ) remote: No matching distribution found for python-3.7.0 (from -r /tmp/build_56ed5608dd6394891e58f29a1dd224c2/requirements.txt (line 5))

1

1 Answers

1
votes

I don't think you're supposed to have any "python" version in the requirements.txt. My requirements.txt is for a extremely basic application, but it only has this:

gunicorn 
django-heroku
django

Requirements are for the "extra" things. If you have the buildpack set up for python, I don't think you'll need it in requirements.txt at all.

I actually don't have a runtime.txt because heroku can configure that automatically, but I don't think that's the issue you're running into.