Fix Python – Unable to set default python version to python3 in ubuntu

I was trying to set default python version to python3 in Ubuntu 16.04. By default it is python2 (2.7). I followed below steps :
update-alternatives –remove python /usr/bin/python2
update-alternatives –install /usr/bin/python python /usr/bin/python3

but I’m getting the following error for the second statement,
rejeesh@rejeesh-Vostro-1015:~$ upda….

Fix Python – How do I update a Python package?

I’m running Ubuntu 9:10 and a package called M2Crypto is installed (version is 0.19.1). I need to download, build and install the latest version of the M2Crypto package (0.20.2).
The 0.19.1 package has files in a number of locations including (/usr/share/pyshared and /usr/lib/pymodules.python2.6).
How can I completely uninstall version 0.19.1 fro….

Fix Python – Install tkinter for Python

I am trying to import Tkinter. However, I get an error stating that Tkinter has not been installed:
ImportError: No module named _tkinter, please install the python-tk package

I could probably install it using synaptic manager (can I?), however, I would have to install it on every machine I program on. Would it be possible to add the Tkinter libr….