The Jackal
The Jackal

Reputation: 17

Python3.6 over python 3.4

I have both python2.7, python3.4 and python3.6 installed on my Debian Jessie GNU Linux desktop and want to make python3.6 the default python3 when I run on terminal or using IDLE. How do I do it?

Upvotes: 1

Views: 621

Answers (2)

user8743642
user8743642

Reputation:

I have this same problem too. What I did was I went into my home directory and made a file called .bash_profile and put the following line into it.

alias python=/usr/bin/python3.6

Then I saved the file, restarted my ssh connection and its good. Please note that this only changes the python version used during calls from your ssh session.

If you have a script written in python or something else that calls python ... then it will get the "default" python version.

Upvotes: 1

Sergei Glimis
Sergei Glimis

Reputation: 480

Here is what you can do:

to check your currect version:

python --version  

to change it:

alias python='/usr/bin/python3.4

Upvotes: 0

Related Questions