0

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

Dean Christian Armada
  • 6,724
  • 9
  • 67
  • 116

3 Answers3

2

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.

Alexey Kamenskiy
  • 2,888
  • 5
  • 36
  • 56
1

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
1

May be this help Install python 3.5, or you can also use ANACONDA

Community
  • 1
  • 1
sgetachew
  • 351
  • 1
  • 2
  • 12