hi after installed python 3.5 in ubuntu, i had 2.7.6 and i wanted to be updated cause i will be working and learning python, so i installed the latest python version 3.5 and switched version to it, i have python 2.7 & 3.5 installed but set it to 3.5 as default, after making that change and update i got this error:
$ sudo add-apt-repository ppa:example/example -y Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 11, in <module> from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 27, in <module> import apt_pkg ImportError: No module named 'apt_pkg'
at the moment is the only one i encounter besides cant remove any python version it would break the system ,any help about how to fix it? :(
$ update-alternatives --query python Name: python Link: /usr/bin/python Status: manual Best: /usr/bin/python3.5 Value: /usr/bin/python2.7 Alternative: /usr/bin/python2.7 Priority: 1 Alternative: /usr/bin/python3.5 Priority: 2 $ ls -l /usr/bin/python3.5 /usr/bin/python2.7 -rwxr-xr-x 2 root root 3754856 dic 18 09:58 /usr/bin/python3.5 -rwxr-xr-x 1 root root 3345416 jun 22 2015 /usr/bin/python2.7