Estou no passo de criar um script pra atualizar o banco de dado pelo comando "python manage.py makemigrations" mas o seguinte erro aparece:
Traceback (most recent call last): File "C:\Users\luizc\OneDrive\Desktop\Curso_Python_Alura\Django REST_3\manage.py", line 11, in main from django.core.management import execute_from_command_line File "C:\Users\luizc\OneDrive\Desktop\Curso_Python_Alura\Django REST_3\venv\Lib\site-packages\django_init_.py", line 1, in from django.utils.version import get_version File "C:\Users\luizc\OneDrive\Desktop\Curso_Python_Alura\Django REST_3\venv\Lib\site-packages\django\utils\version.py", line 6, in from distutils.version import LooseVersion ModuleNotFoundError: No module named 'distutils'
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\Users\luizc\OneDrive\Desktop\Curso_Python_Alura\Django REST_3\manage.py", line 22, in main() File "C:\Users\luizc\OneDrive\Desktop\Curso_Python_Alura\Django REST_3\manage.py", line 13, in main raise ImportError( ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Meu ambiente virtual está ativado e instalei todas as bibliotecas na mesma versão solicitada no arquivo requirements.