Arjuna Posted September 13, 2018 Posted September 13, 2018 hi. i am new to armbian and i want to start learning python i use below tutorial but it does't work https://youtu.be/D_N2K2fTH2M any body have other reference for me to install python 3.7.0? i am using orange pi pc. thanks.
martinayotte Posted September 13, 2018 Posted September 13, 2018 On 9/13/2018 at 9:27 AM, Arjuna said: i use below tutorial but it does't work Expand What issue you've faced ? On 9/13/2018 at 9:27 AM, Arjuna said: reference for me to install python 3.7.0 Expand Why do you need to have latest version ? Most distros have already python2 and python3 ... 1
ag123 Posted September 13, 2018 Posted September 13, 2018 simply type $ python >>> print "hello world" does that work? if it works python is already installed, google search for other tutorials 1
Tido Posted September 13, 2018 Posted September 13, 2018 On 9/13/2018 at 9:27 AM, Arjuna said: any body have other reference for me to install python 3.7.0? Expand I don't have reference, but if you do in a terminal: dpkg -l python3.* you can see what version you have installed by looking for the 'ii'. As @martinayotte, already wrote 2.x and 3.x is usually already installed. Depending on your 'project' the installed version is already sufficent for your needs and you can start programming :-) 1
Arjuna Posted September 13, 2018 Author Posted September 13, 2018 home@orangepipc:~$ python3 --version Python 3.7.0 home@orangepipc:~$ python --version Python 2.7.12 home@orangepipc:~$ python Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> yeah you are right guys, i now know that armbian already included python as pre-install. i guest i will google more about installing the interpreter and make python 3.7.0 as my default. Because i have these e-book about python 3 version not python 2 version. thank you all for your reply.
Tido Posted September 14, 2018 Posted September 14, 2018 Python 3 is under heavy development. That said, depending of the age of the book I would choose the appropriate python version. The newest might not be the 'best'.
martinayotte Posted September 14, 2018 Posted September 14, 2018 On 9/13/2018 at 11:59 PM, Arjuna said: google more about installing the interpreter and make python 3.7.0 as my default Expand no needs to install since it is already there ... To make it default, simply remove current /usr/bin/python symbolic link and recreate new one pointing to /usr/bin/python3.7 ...
Recommended Posts