Получение ошибки "Requested runtime is not available for this stack (heroku-20)." с правильными версиями Python
Главная проблема, которую я не смог найти нигде, заключается в том, что скобка содержит все остальные строки runtime.txt. что заставляет меня поверить, что что-то еще не так, но я не могу найти никакого решения в Интернете. Buildlog прилагается для справки.
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Python app detected
-----> Using Python version specified in runtime.txt
! Requested runtime (asgiref==3.4.1
colorama==0.4.4
comtypes==1.1.10
cycler==0.10.0
dj-database-url==0.5.0
Django==3.2.6
docx2pdf==0.1.7
gunicorn==20.1.0
joblib==1.0.1
kiwisolver==1.3.2
lxml==4.6.3
matplotlib==3.4.3
mysql-connector-python==8.0.26
numpy==1.21.2
Pillow==8.3.2
psycopg2==2.9.1
pyparsing==2.4.7
python-dateutil==2.8.2
python-docx==0.8.11
pytz==2021.1
pywin32==227
scikit-learn==0.24.2
scipy==1.7.1
six==1.16.0
sklearn==0.0
sqlparse==0.4.1
threadpoolctl==2.2.0
tqdm==4.62.3
whitenoise==5.3.0
python-3.9.7) is not available for this stack (heroku-20).
! Aborting. More info: https://devcenter.heroku.com/articles/python-support
! Push rejected, failed to compile Python app.
! Push failed
Я решил эту проблему и оказалось, что проблема была в строке pywin32==227
. Очевидно, я кодировал все в windows, а heroku находится на linux и поэтому он не работал, я просто удалил строку pywin32 и теперь все работает.