Currently when I enter python3. It runs "python3.2.3" version but what I want is when I enter python3 on the shell is it should run "python3.5.1".
I am running on a Debian Wheezy OS
Currently when I enter python3. It runs "python3.2.3" version but what I want is when I enter python3 on the shell is it should run "python3.5.1".
I am running on a Debian Wheezy OS
I would say you need to look at virtualenv. This is a common tool for having isolated Python environments.
I won't provide here an example as simple Google search for "use multiple versions of Python" provides enough detailed material.
On CentOS/redhat you can just link /usr/bin/python to you "python3.2.3" executable.
RPM package just duplicates this binary:
[~]# md5sum /usr/bin/python2.6
71494aa9082392bff9f93b725773ec39 /usr/bin/python2.6
[~]# md5sum /usr/bin/python
71494aa9082392bff9f93b725773ec39 /usr/bin/python