Bonjour,
J'ai commis une erreur de débutant en voulant désinstaller python 2.7 de Ubuntu 19.10, bien sur le résultat est catastrophique.
J'ai donc continuer dans ma bêtise en voulant désinstaller toutes les versions de python, pour les réinstaller proprement.
J'ai pu réinstaller la 2.7 mais impossible de réinstaller proprement py3.7 .
Même le nettoyage bloque.
apt autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
34 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python3.7 (3.7.3-2ubuntu0.2) ...
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007fdd6e169740 (most recent call first):
Aborted
dpkg: error processing package python3.7 (--configure):
installed python3.7 package post-installation script subprocess returned error exit status 134
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3.7 (>= 3.7.3-1~); however:
Package python3.7 is not configured yet.
dpkg: error processing package python3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-webencodings:
python3-webencodings depends on python3:any (>= 3.5~); however:
Package python3 is not configured yet.
dpkg: error processing package python3-webencodings (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-tz:
python3-tz depends on python3:any; however:
Package python3 is not configured yet.
dpkg: error processing package python3-tz (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-six:
python3-six depends on python3:any; however:
Package python3 is not configured yet.
....
Je ne sais plus comment résoudre le pb.
Une idée ?