close

How to make python3 command run Python 3.6 instead of 3.5?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to make python3 command run Python 3.6 instead of 3.5 in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to make python3 command run Python 3.6 instead of 3.5?

  1. How to make python3 command run Python 3.6 instead of 3.5?

    Damn, Python is used throughout much of Ubuntu for system scripts and software, and software relies on having Python (and the commands to start Python) in a certain spot. do back then.

  2. make python3 command run Python 3.6 instead of 3.5

    Damn, Python is used throughout much of Ubuntu for system scripts and software, and software relies on having Python (and the commands to start Python) in a certain spot. do back then.

Method 1

do

rm /usr/bin/python3
ln -s /usr/bin/python3.6 /usr/bin/python3

much better solution:

Damn, Python is used throughout much of Ubuntu for system scripts and software, and software relies on having Python (and the commands to start Python) in a certain spot. do back then.

rm /usr/bin/python3 
ln -s /usr/bin/python3.5 /usr/bin/python3 

create alias in ~/.bash_aliases

alias python3='/usr/bin/python3.6' 

Scripts can then start with something like:

#!/usr/bin/env python3 

Method 2

Worked Perfectly…

ln -sf /usr/bin/python3.5 /usr/bin/python3

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read