I purged all the python3 packages and when I try to install python3 again on my raspbian I get this:
Setting up python3.5-minimal (3.5.3-1) ...
# Empty sitecustomize.py to avoid a dangling symlink
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Current thread 0x76fc8010 (most recent call first):
Aborted
dpkg: error processing package python3.5-minimal (--configure):
subprocess installed post-installation script returned error exit status 134
dpkg: dependency problems prevent configuration of python3-minimal:
python3-minimal depends on python3.5-minimal (>= 3.5.3-1~); however:
Package python3.5-minimal is not configured yet.
dpkg: error processing package python3-minimal (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3.5-minimal
python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
update:
I used sudo apt-get purge python3
and then used whereis python3
to find anything else that remains and i removed all of them.
When I try:
sudo apt-get –purge remove python3.5-minimal
sudo apt-get –purge remove python3-minimal
sudo apt-get autoremove –purge
I get this:
You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: dh-python : Depends: python3:any (>= 3.3.2-2~) lsb-release : Depends: python3:any (>= 3.4~) E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
With apt --fix-broken install
I get the same error message.
What is the problem?
sudo apt-get purge python3
and then usedwhereis python3
to find anything else that remains and i removed all of them.