Microsoft Windows [versão 10.0.19042.631]
(c) 2020 Microsoft Corporation. Todos os direitos reservados.
C:\Users\User>pip --version
pip 24.3.1 from C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip (python 3.12)
C:\Users\User>pip install django
Requirement already satisfied: django in c:\users\user\appdata\local\programs\python\python312\lib\site-packages (3.2.5)
Requirement already satisfied: asgiref<4,>=3.3.2 in c:\users\user\appdata\local\programs\python\python312\lib\site-packages (from django) (3.8.1)
Requirement already satisfied: pytz in c:\users\user\appdata\local\programs\python\python312\lib\site-packages (from django) (2024.2)
Requirement already satisfied: sqlparse>=0.2.2 in c:\users\user\appdata\local\programs\python\python312\lib\site-packages (from django) (0.5.1)
C:\Users\User>python
Python 3.12.2 (tags/v3.12.2:6abddd9, Feb 6 2024, 21:26:36) [MSC v.1937 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\__init__.py", line 1, in <module>
from django.utils.version import get_version
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\utils\version.py", line 6, in <module>
from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'
>>> print(django.get_version())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'django' is not defined
>>> import django
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\__init__.py", line 1, in <module>
from django.utils.version import get_version
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\utils\version.py", line 6, in <module>
from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'
Poderia me explicar, por gentileza, como instalar o Django no notebook. Não quero usar no venv pq a internet cai toda hora.
obrigada