[Django]-Can't import: 'unable to import rest_framework' when importing serializer? (windows)

9👍

vs code_taskbar
I see you’re using VS Code. A quick fix is to go to the Python environment settings at the bottom-left corner[Taskbar] of the VS Code-> tap on [Python 2/3…] and it will prompt you to choose the environment from the default Python installation directory to your Project Virtual Environment(venv) directory and that should fix all the import issues.

Leave a comment