Getting error cannot import name 'six' from 'django.utils' when using Django 3.0.0 latest version

前端 未结 5 1820
梦毁少年i
梦毁少年i 2020-12-10 13:18

Currently I have upgraded version of Django 2.2 to 3.0 and suddenly getting error like below.

ImportError: cannot import name \'six\' from \'django.ut

5条回答
  •  囚心锁ツ
    2020-12-10 13:52

    Short Answer in Django 3.0 just install six:

    pip install six
    

    And just use it like:

    import six
    

提交回复
热议问题