0
Arjuna

[ASK] how to install Python in armbian

Recommended Posts

3 hours ago, Arjuna said:

i use below tutorial but it does't work

What issue you've faced ?

3 hours ago, Arjuna said:

reference for me to install python 3.7.0

Why do you need to have latest version ? Most distros have already python2 and python3 ...

Share this post


Link to post
Share on other sites

simply type

$ python

>>> print "hello world"

does that work? if it works python is already installed, google search for other tutorials :lol:

Share this post


Link to post
Share on other sites
9 hours ago, Arjuna said:

any body have other reference for me to install python 3.7.0? 

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 :-)

 

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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'.

 

Share this post


Link to post
Share on other sites
12 hours ago, Arjuna said:

google more about installing the interpreter and make python 3.7.0 as my default

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 ...

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0