Skip to content
Advertisement

How to set Python 3.8 as my default python version on kali linux

I installed python 3.8 in my kali linux OS, but when I type python in kali linux terminal it showing like this

> Python 2.7.18 (default, Apr 20 2020, 20:30:41) 

How can I set Python 3.8 as my default?

Advertisement

Answer

Hope this answers your question. The easiest way would be to run alias python=python3 . So, now if you run the command python it will load python3 instead of python while being under the same alias/command python.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement