My current python version is python 2.7 (python --version
), However, I've accidentally removed python2.7
from /usr/lib/
so I cannot do anything and I see this error:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
Any suggestion?
sudo apt install --reinstall python2.7
helps? – mook765 Sep 16 '18 at 13:04python
package version, then download and extract the missing files. Then reinstall python2.7, just to be sure. – Jos Sep 16 '18 at 15:25