Change Python version ? {Solved}

Post Reply
Message
Author
User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 1:21 am

Change Python version ? {Solved}

#1 Post by KoO »

Can you change from v2 python to v3 with MX as it seems to use v2 out of da box ?
▶▶▶ 12:27:33 PM Fri Jan 26 2018 ◀◀◀
koo@mx-17:~➤ python -V
Python 2.7.13

As v3 is installed
python3 -V
Python 3.5.3

Thanks
Last edited by KoO on Fri Jan 26, 2018 12:51 pm, edited 1 time in total.
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
Stevo
Developer
Posts: 12837
Joined: Fri Dec 15, 2006 8:07 pm

Re: Change Python version ?

#2 Post by Stevo »

Debian's "python" is python2. Just use "python3" for python 3. As in:

Code: Select all

python3 something.py

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 1:21 am

Re: Change Python version ?

#3 Post by KoO »

okey dokey
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

Post Reply

Return to “General”