Question: can python 2 and 3 coexist ubuntu?
Answer: Just install the 'python3' package. Ubuntu employs an additional naming convention for related packages: 'python-matplotlib' is the python2 version, 'python3-matplotlib' is python3. To use a python3 shell, just use the 'python3' command.