Django Rest Framework — no module named rest_framework

后端 未结 21 860
夕颜
夕颜 2021-02-01 00:23

I\'ve installed django rest framework using pip install djangorestframework yet I still get this error when I run \"python3 manage.py sycndb\":

21条回答
  •  梦谈多话
    2021-02-01 00:45

    I know there is an accepted answer for this question and many other answers also but I just wanted to add an another case which happened with me was Updating the django and django rest framework to the latest versions to make them work properly without any error.

    So all you have to do is just uninstall both django and django rest framework using:

    pip uninstall django pip uninstall djangorestframework

    and then install it again using:

    pip install django pip install djangorestframework

提交回复
热议问题