当我尝试使用 simpleJWT 版本 4.6.0 部署到 Heroku 时出现错误

问题描述

当我在 Django 中安装 djangorestframework-simplejwt 4.6.0 并尝试将其部署到 Heroku 时,出现以下错误

remote:          Downloading djangorestframework-3.12.2-py3-none-any.whl (957 kB)
remote:        ERROR: Could not find a version that satisfies the requirement djangorestframework-simplejwt==4.6.0 (from -r /tmp/build_5927f5b0/requirements.txt (line 19)) (from versions: 1.0,1.1,1.2,1.2.1,1.3,1.4,1.5.1,2.0.0,2.0.1,2.0.2,2.0.3,2.0.4,2.0.5,2.1,3.0,3.1,3.2,3.2.1,3.2.2,3.2.3,3.3,4.0.0,4.1.0,4.1.1,4.1.2,4.1.3,4.1.4,4.1.5,4.2.0,4.3.0,4.4.0)
remote:        ERROR: No matching distribution found for djangorestframework-simplejwt==4.6.0 (from -r /tmp/build_5927f5b0/requirements.txt (line 19))

我尝试安装和部署 4.4.0 以查看是否可以找到 4.6.0,并且能够部署它,但是当我尝试使用 python manage.py runserver 启动和访问它时,{{1} }.

为什么会这样?如果您能告诉我如何喂养它们,我将不胜感激。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)