Почему не удается найти или установить модуль home в Django?
Я новичок в Django и изучаю его по видео на youtube. В видео преподаватель делает следующее
from home import views. Теперь, когда я пытаюсь сделать то же самое, я получаю ошибку "Unresolved reference home". Поэтому я попробовал установить home с помощью pip installer, но постоянно получаю следующую ошибку:-
Collecting uwsgi>=2.0
Using cached uwsgi-2.0.20.tar.gz (804 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\clash\AppData\Local\Temp\pip-install-gpajfqiw\uwsgi_5085974451e542118156b6196d19b2cf\setup.py", line 3, in <module>
import uwsgiconfig as uc
File "C:\Users\clash\AppData\Local\Temp\pip-install-gpajfqiw\uwsgi_5085974451e542118156b6196d19b2cf\uwsgiconfig.py", line 8, in <module>
uwsgi_os = os.uname()[0]
AttributeError: module 'os' has no attribute 'uname'. Did you mean: 'name'?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Может ли кто-нибудь сказать мне, почему это происходит и каково решение этой ошибки. Я пробовал использовать cmd, windows powershell и vscode terminal, но ничего не помогает.