I\'ve installed django rest framework using pip install djangorestframework
yet I still get this error when I run \"python3 manage.py sycndb\":
(I would assume that folks using containers know what they're doing, but here's my two cents)
Let's say you setup your project using cookiecutter-django and enabled the docker container support, be sure to update the pip requirements file with djangorestframework==<x.yy.z>
(or whichever python dependency you're trying to install) and re-build the docker images (local and production).
I recently installed the latest Django 3.1 and Django Rest Framework 3.11.1 libraries only to eventually realize Django 3.1 is not supported by DRF as of 11 April 2020. I did not realize that the exact releases mentioned need to be used.
If you're pulling your hair out because you can't understand why DRF is not importing check these requirements and make sure your app is compatible.
On Windows, with PowerShell, I had to close and reopen the console and then reactive the virtual environment.