I did a release upgrade, followed by apt upgrade
no problem, everything went smooth. Except, now virtual environments don't work at all. I have various one set up for various django projects I'm working on. When I try to run django manage.py runserver
I get:
ModuleNotFoundError: No module named 'django'
OK, weird, so I'll try to install django again
ModuleNotFoundError: No module named 'pip'
And I cannot run pip
outside the virtual environment, as explained here.
So what is the practice now? Do I need to recreate my virtual environments?
Update:
If I create a new environment (mkvirtualenv new_env
) pip works fine.
Edit: Sorry, I forgot to add. I've updated from mainstream Ubuntu 22.10 to mainstream Ubuntu 23.04
I added that to my question.
– Yotam Apr 28 '23 at 12:47pip3 install -U django
... etc. ... Please see for example: python3.8 and pip after upgrading to 22.04.2 – Raffa Apr 28 '23 at 12:59