【问题标题】:ContextualVersionConflict Error with PyJWT on installing djangorestframework-simplejwt安装 djangorestframework-simplejwt 时出现 PyJWT 的 ContextualVersionConflict 错误
【发布时间】:2021-08-28 22:41:47
【问题描述】:

我有一个数字海洋 django 实例,在我安装 djangorestframework-simplejwt 后,我收到以下错误消息的上下文版本冲突:

(PyJWT 1.7.1 (/usr/lib/python3/dist-packages), Requirement.parse('pyjwt<3,>=2'), {'djangorestframework-simplejwt'})

我已将 PyJwt 升级到 2+ 版本,并且还从实例中删除了现有的 python3-jwt,但没有成功。不确定这个 1.7 版本的来源和来源。我也升级了django版本到3+

【问题讨论】:

    标签: django django-rest-framework django-rest-framework-simplejwt pyjwt


    【解决方案1】:

    在尝试安装 Twilio 库时,我也遇到了与 'djangorestframework-simplejwt' ('pyjwt=2') 冲突的问题。我通过删除 requirements.txt 文件的 Twilio 版本解决了这个问题

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-28
      • 2019-08-01
      • 2019-03-08
      • 2021-06-03
      • 2017-12-30
      • 2014-02-28
      相关资源
      最近更新 更多