Previously I had Virtual Environment installed on my system. I created two different VirtualEnv for two different projects I was working on.
I use to activate one of these virtual environment and would start working on project.
Recently my system got corrupted and I upgraded the OS after copying all projects and virtual environments. I copied the project files and virtual environments back to my system and installed virtual environment.
Set PYTHONHOME='/usr/lib/python3' in .bashrc
Now when I activated one of the copied environment and tried to run python manage.py runserver, I got below error
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Aborted (core dumped)
Running pip inside this virtual env is throwing same error.
Please suggest me what I need to so that my project can work as before.