Upgrade Python 3.2 to Python 3.4 on linux -


i have python 3.2 installed default on raspbian linux, want python 3.4 (time.perf_counter, yield from, etc.). installing python 3.4 via apt-get no problem, when type python3 in shell still python 3.2 (since /usr/bin/python3 still links it). should change symlink, or there better this?

you must not change symlink there might debian utility scripts depend on python3 being python 3.2 or having particular library installed. there multitude of command line utilities depend on particular version on debian , derived versions; example on ubuntu, there scripts in /usr/bin python3 on shebang; there python3 means that python 3 operating system keeps current. if install python 3 hand, not 1 operating system thinks useable python3 scripts. example ubuntu 14.10 system:

[/usr/bin]% python3 bluez-list-devices   [/usr/bin]% python3.4 bluez-list-devices   [/usr/bin]% python3.3 bluez-list-devices traceback (most recent call last):   file "bluez-list-devices", line 3, in <module>     import dbus   file "/usr/lib/python3/dist-packages/dbus/__init__.py", line 82, in <module>     import dbus.types types   file "/usr/lib/python3/dist-packages/dbus/types.py", line 6, in <module>     _dbus_bindings import ( importerror: no module named '_dbus_bindings' [/usr/bin]% head -n 1 bluez-list-devices #!/usr/bin/python3 

if change symlink @ own decision, @ worst can make system unbootable.

just use python3.4 command, or use virtual environment.