I was upgrading from Ubuntu17.04(zesty) to 17.10(artful) , by
do-release-upgrade and I do have the same problem as here How to fix "python installation is corrupted"?.
Tried remediation as mentioned in the note,
update-alternatives --remove-all python
sudo ln -sf /usr/bin/python3.5 /usr/bin/python
- removed miniconda3 directory
sudo apt-get install --reinstall python
...but still the problem unresolved.
Can someone provide other solutions, appreciate your help.