I am using an Ubuntu 16.04 machine. As far as I know, I have the newest versions of Python 2 and 3 correctly installed:
$ python --version
Python 2.7.13
$ python2 --version
Python 2.7.13
$ python3 --version
Python 3.6.2
However, when I try to install other packages that depend on python, apt-get does not seem to recognize python and therefore fail to install packages that depend on any python-related stuff.
e.g.,
$ sudo apt-get install python-wxversion
leads to:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
> The following packages have unmet dependencies:
python-wxversion : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
E: Unable to correct problems, you have held broken packages.
Other python-related installs seem to cause similar issue. Any suggestions?
(sudo apt-get install -f did nothing.)