Django is installed in /usr/local/lib/python3.10/site-packages (4.0.6)

Hello colleagues,

my django models seems to be installed in /usr/local/lib/python3.10/site-packages (4.0.6) and when I try to run my app it returns import error on this line from django.core.wsgi import get_wsgi_application as it expected to run it from my venv which is in my_user/my_project/venv.

I tried to uninstall django from /usr/local/lib/python3.10/site-packages (4.0.6) and to install it in my venv but it said: " (venv) 07:42 ~/aimtravel $ pip install django Defaulting to user installation because normal site-packages is not writeable Looking in links: /usr/share/pip-wheels Requirement already satisfied: django in /usr/local/lib/python3.10/site-packages (4.0.6) Requirement already satisfied: sqlparse>=0.2.2 in /usr/local/lib/python3.10/site-packages (from django) (0.4.2) Requirement already satisfied: asgiref<4,>=3.4.1 in /usr/local/lib/python3.10/site-packages (from django) (3.5.2)"

probably I missed something. Please help

It looks like your venv is in weird state. Try to delete it and re-create it and then install django there.