Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Change Python version ? {Solved}

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

Change Python version ? {Solved}

#1 Post by KoO » Thu Jan 25, 2018 11:00 pm

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.
Da Main Box .. Antix 17 (4.18.7) i3 ,Windows8.1 , Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO M2 250 GB , Samsung EVO SSD 500 GB , GTX 970
Lappy .. Lenovo T430 AntiX17.1 (4.18.4) i3 ,Windows8.1 , i5 +4000 , 8gb , Samsung EVO 860 250 GB , 1TB HGST

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16160
Joined: Fri Dec 15, 2006 8:07 pm

Re: Change Python version ?

#2 Post by Stevo » Thu Jan 25, 2018 11:51 pm

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

Code: Select all

python3 something.py

User avatar
KoO
Forum Regular
Forum Regular
Posts: 257
Joined: Fri Feb 10, 2017 1:21 am

Re: Change Python version ?

#3 Post by KoO » Fri Jan 26, 2018 2:35 am

okey dokey
Da Main Box .. Antix 17 (4.18.7) i3 ,Windows8.1 , Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO M2 250 GB , Samsung EVO SSD 500 GB , GTX 970
Lappy .. Lenovo T430 AntiX17.1 (4.18.4) i3 ,Windows8.1 , i5 +4000 , 8gb , Samsung EVO 860 250 GB , 1TB HGST

Post Reply

Return to “General”