当我djangorestframework-simplejwt 4.6.0
在 Django 中安装并尝试将其部署到 时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
,'str' object has no attribute 'decode'
.
为什么会这样?如果你能告诉我如何喂它们,我将不胜感激。