Community
cancel
Showing results for 
Search instead for 
Did you mean: 
CChir1
Novice
1,543 Views

installing python 2.7.12 on galileo gen-2

how can i install python 2.7.12 on my galileo gen-2 hence it has only 2.7.3 in it's opkg repos.

0 Kudos
9 Replies
FTinetti
Honored Contributor I
179 Views

Hi ChiChi,

Did you try building from source (download sources from https://www.python.org/downloads/source/ Python Source Releases | Python.org )?

HTH,

Fernando.

CChir1
Novice
179 Views

after downloading the tarball and then after unzipping the tarball. i used steps in this link

but my python shows 2.7.3 only

FTinetti
Honored Contributor I
179 Views

ChiChi wrote:

after downloading the tarball and then after unzipping the tarball. i used steps in this link

/thread/96384 How to install Python 2.7.9+?

but my python shows 2.7.3 only

If compiling/installing was fine, then maybe it's a matter of path. Please send the output of

$ which python

$ ls /usr/local/bin/py*

$ ls /usr/local/lib/py*

$ find / -name "python*" -print 2> /dev/null

(the last command could take several minutes to end)

Fernando.

idata
Community Manager
179 Views

Hello ChiChi,

 

 

I was wondering if you could check the request by FGT.

 

 

Providing the output may give us new information regarding the issue you are experiencing.

 

 

If you have any update or question, don't hesitate to contact us.

 

 

Regards,

 

Andres V.
CChir1
Novice
179 Views

Hello Andres,

Sorry got late this is the output i got

/usr/bin/python2.7-config

/usr/bin/python2

/usr/bin/python2-config

/usr/bin/python-config

/usr/bin/python

/usr/bin/python2.7

/usr/include/boost/python.hpp

/usr/include/boost/parameter/aux_/python

/usr/include/boost/parameter/python.hpp

/usr/include/boost/mpi/python

/usr/include/boost/mpi/python.hpp

/usr/include/boost/python

/usr/include/boost/python/detail/python22_fixed.h

/usr/include/boost/python/detail/python_type.hpp

/usr/include/python2.7

/usr/include/python2.7/pythonrun.h

/usr/lib/pkgconfig/python2.pc

/usr/lib/pkgconfig/python.pc

/usr/lib/pkgconfig/python-2.7.pc

/usr/lib/node4/wafadmin/Tools/python.py

/usr/lib/python2.7

/usr/lib/python2.7/idlelib/Icons/python.gif

/usr/lib/python2.7/config/python.o

/usr/lib/python2.7/site-packages/pygments/lexers/python.py

/usr/lib/python2.7/site-packages/pygments/lexers/python.pyc

/usr/local/bin/python2.7

/usr/local/bin/python2.7-config

/usr/local/include/python2.7

/usr/local/include/python2.7/pythonrun.h

/usr/local/lib/python2.7

/usr/local/lib/python2.7/config/python.o

/usr/local/lib/python2.7/idlelib/Icons/python.gif

/usr/local/lib/pkgconfig/python-2.7.pc

/usr/local/share/man/man1/python2.7.1

/usr/share/swig/3.0.6/python

/usr/share/swig/3.0.6/python/pythonkw.swg

/usr/share/swig/3.0.6/python/python.swg

/usr/share/automake-1.14/am/python.am

/usr/share/aclocal-1.14/python.m4

/usr/share/mraa/examples/python

/usr/share/gdb/python

/usr/share/nano/python.nanorc

/usr/share/vim/vim74/syntax/python.vim

/usr/share/vim/vim74/indent/python.vim

/usr/share/vim/vim74/ftplugin/python.vim

/usr/share/vim/vim74/autoload/python3complete.vim

/usr/share/vim/vim74/autoload/pythoncomplete.vim

/var/lib/opkg/info/python-sqlite3.list

/var/lib/opkg/info/python-io.control

/var/lib/opkg/info/python-pygobject-dev.control

/var/lib/opkg/info/python-subprocess.list

/var/lib/opkg/info/python-lang.control

/var/lib/opkg/info/python-misc.control

/var/lib/opkg/info/python-re.control

/var/lib/opkg/info/python-nose.control

/var/lib/opkg/info/python-mailbox.control

/var/lib/opkg/info/python-redis.control

/var/lib/opkg/info/python-bsddb.control

/var/lib/opkg/info/python-curses.list

/var/lib/opkg/info/python-redis.list

/var/lib/opkg/info/python-2to3.list

/var/lib/opkg/info/python-syslog.list

/var/lib/opkg/info/python-readline.list

/var/lib/opkg/info/python-difflib.list

/var/lib/opkg/info/python-pip.control

/var/lib/opkg/info/python-profile.list

/var/lib/opkg/info/python-gdbm.list

/var/lib/opkg/info/python-datetime.control

/var/lib/opkg/info/python-dev.list

/var/lib/opkg/info/python-doctest.list

/var/lib/opkg/info/python-math.list

/var/lib/opkg/info/python-re.list

/var/lib/opkg/info/python-numbers.control

/var/lib/opkg/info/python-email.control

/var/lib/opkg/info/python-stringold.control

/var/lib/opkg/info/python-tkinter.list

/var/lib/opkg/info/python-pip.list

/var/lib/opkg/info/python-unixadmin.list

/var/lib/opkg/info/python-core.control

/var/lib/opkg/info/python-resource.control

/var/lib/opkg/info/python-netserver.control

/var/lib/opkg/info/python-audio.control

/var/lib/opkg/info/python-distribute.list

/var/lib/opkg/info/python-gdbm.control

/var/lib/opkg/info/python-difflib.control

/var/lib/opkg/info/python-tests.list

/var/lib/opkg/info/python-textutils.list

/var/lib/opkg/info/python-datetime.list

/var/lib/opkg/info/python-codecs.list

/var/lib/opkg/info/python-distribute.control

/var/lib/opkg/info/python-codecs.control

/var/lib/opkg/info/python-pickle.control

/var/lib/opkg/info/python-xmlrpc.list

/var/lib/opkg/info/python-shell.list

/var/lib/opkg/info/python-curses.control

/var/lib/opkg/info/python-json.control

/var/lib/opkg/info/python-ctypes.control

/var/lib/opkg/info/python-elementtree.control

/var/lib/opkg/info/python-pprint.list

/var/lib/opkg/info/python-threading.list

/var/lib/opkg/info/python-json.list

/var/lib/opkg/info/python-tkinter.control

/var/lib/opkg/info/python-distribute-dev.list

/var/lib/opkg/info/python-numpy-dev.list

/var/lib/opkg/info/python-pkgutil.control

/var/lib/opkg/info/python-xml.list

/var/lib/opkg/info/python-terminal.list

/var/lib/opkg/info/python-pydoc.control

/var/lib/opkg/info/python-netclient.list

/var/lib/opkg/info/python-2to3.control

/var/lib/opkg/info/python-zlib.control

/var/lib/opkg/info/python-html.list

/var/lib/opkg/info/python-textutils.control

/var/lib/opkg/info/python-netclient.control

/var/lib/opkg/info/python-unittest.control

/var/lib/opkg/info/python-dbus.list

/var/lib/opkg/info/python-compile.list

/var/lib/opkg/info/python-readline.control

/var/lib/opkg/info/python-pip-dev.control

/var/lib/opkg/info/python-terminal.control

/var/lib/opkg/info/python-fcntl.list

/var/lib/opkg/info/python-pygobject.list

/var/lib/opkg/info/python-logging.list

/var/lib/opkg/info/python-nose-dev.list

/var/lib/opkg/info/python-distutils.control

/var/lib/opkg/info/python-threading.control

/var/lib/opkg/info/python-importlib.control

/var/lib/opkg/info/python-dbus.control

/var/lib/opkg/info/python-email.list

/var/lib/opkg/info/python-mmap.control

/var/lib/opkg/info/python-image.control

/var/lib/opkg/info/python-mime.list

/var/lib/opkg/info/python-xml.control

/var/lib/opkg/info/python-hotshot.control

/var/lib/opkg/info/python-subprocess.control

/var/lib/opkg/info/python-mmap.list

/var/lib/opkg/info/python-robotparser.list

/var/lib/opkg/info/python-sqlite3-tests.list

/var/lib/opkg/info/python-fcntl.control

/var/lib/opkg/info/python-multiprocessing.control

/var/lib/opkg/info/python-distutils.list

/var/lib/opkg/info/python-db.list

/var/lib/opkg/info/python-smtpd.control

/var/lib/opkg/info/python-profile.control

/var/lib/opkg/info/python-sqlite3.control

/var/lib/opkg/info/python-sqlite3-tests.control

/var/lib/opkg/info/python-numpy.control

/var/lib/opkg/info/python-lang.list

/var/lib/opkg/info/python-crypt.control

/var/lib/opkg/info/python-stringold.list

/var/lib/opkg/info/python-audio.list

/var/lib/opkg/info/python-nose-dev.control

/var/lib/opkg/info/python-distribute-dev.control

/var/lib/opkg/info/python-hotshot.list

/var/lib/opkg/info/python-numbers.list

/var/lib...

CChir1
Novice
179 Views

Hello Andres,

this is the full output of all commands

$ which python

/usr/bin/python

$ ls /usr/local/bin/py*

/usr/local/bin/pydoc /usr/local/bin/python2.7 /usr/local/bin/python2.7-config

$ ls /usr/local/lib/py*

BaseHTTPServer.py anydbm.pyo decimal.py imaplib.py optparse.pyo sched.pyo telnetlib.pyBaseHTTPServer.pyc argparse.py decimal.pyc imaplib.pyc os.py sets.py telnetlib.pycBaseHTTPServer.pyo argparse.pyc decimal.pyo imaplib.pyo os.pyc sets.pyc telnetlib.pyoBastion.py argparse.pyo difflib.py imghdr.py os.pyo sets.pyo tempfile.pyBastion.pyc ast.py difflib.pyc imghdr.pyc os2emxpath.pysgmllib.py tempfile.pycBastion.pyo ast.pyc difflib.pyo imghdr.pyo os2emxpath.pyc sgmllib.pyc tempfile.pyoCGIHTTPServer.py ast.pyo dircache.py importlib os2emxpath.pyo sgmllib.pyo testCGIHTTPServer.pyc asynchat.py dircache.pyc imputil.py pdb.doc sha.py textwrap.pyCGIHTTPServer.pyo asynchat.pyc dircache.pyo imputil.pyc pdb.py sha.pyc textwrap.pycConfigParser.py asynchat.pyo dis.py imputil.pyo pdb.pyc sha.pyo textwrap.pyoConfigParser.pyc asyncore.py dis.pyc inspect.py pdb.pyo shelve.py this.pyConfigParser.pyo asyncore.pyc dis.pyo inspect.pyc pickle.py shelve.pyc this.pycCookie.py asyncore.pyo distutils inspect.pyo pickle.pyc shelve.pyo this.pyoCookie.pyc atexit.py doctest.py io.py pickle.pyo shlex.py threading.pyCookie.pyo atexit.pyc doctest.pyc io.pyc pickletools.py shlex.pyc threading.pycDocXMLRPCServer.py atexit.pyo doctest.pyo io.pyo pickletools.pyc shlex.pyo threading.pyoDocXMLRPCServer.pyc audiodev.py dumbdbm.py json pickletools.pyo shutil.py timeit.pyDocXMLRPCServer.pyo audiodev.pyc dumbdbm.pyc keyword.py pipes.py shutil.pyc timeit.pycHTMLParser.py audiodev.pyo dumbdbm.pyo keyword.pyc pipes.pyc shutil.pyo timeit.pyoHTMLParser.pyc base64.py dummy_thread.py keyword.pyo pipes.pyo site-packages toaiff.pyHTMLParser.pyo base64.pyc dummy_thread.pyc lib-dynload pkgutil.py site.py toaiff.pycLICENSE.txt base64.pyo dummy_thread.pyo lib-tk pkgutil.pyc site.pyc toaiff.pyoMimeWriter.py bdb.py dummy_threading.py lib2to3 pkgutil.pyo site.pyo token.pyMimeWriter.pyc bdb.pyc dummy_threading.pyc linecache.py plat-linux2 smtpd.py token.pycMimeWriter.pyo bdb.pyo dummy_threading.pyo linecache.pyc platform.py smtpd.pyc token.pyoQueue.py binhex.py email linecache.pyo platform.pyc smtpd.pyo tokenize.pyQueue.pyc binhex.pyc encodings locale.py platform.pyo smtplib.py tokenize.pycQueue.pyo binhex.pyo ensurepip locale.pyc plistlib.py smtplib.pyc tokenize.pyoSimpleHTTPServer.py bisect.py filecmp.py locale.pyo plistlib.pyc smtplib.pyo trace.pySimpleHTTPServer.pycbisect.pyc filecmp.pyc logging plistlib.pyo sndhdr.py trace.pycSimpleHTTPServer.pyobisect.pyo filecmp.pyo macpath.py popen2.py sndhdr.pyc trace.pyoSimpleXMLRPCServer.py bsddb fileinput.py macpath.pyc popen2.pyc sndhdr.pyo traceback.pySimpleXMLRPCServer.pyc cProfile.py fileinput.pyc macpath.pyo popen2.pyo socket.py traceback.pycSimpleXML...
FTinetti
Honored Contributor I
179 Views

Hi ChiChi,

Version 2.7.12 is installed at

/home/root/Python-2.7.12

Then, add that directory to the path:

$ export PATH=/home/root/Python-2.7.12:$PATH

and then

$ python --version

HTH,

Fernando.

idata
Community Manager
179 Views

Hello ChiChi,

 

 

I was wondering if you could check the steps provided by FGT.

 

 

If you have any update or question, don't hesitate to contact us.

 

 

Regards,

 

Andres V.
CChir1
Novice
179 Views

Reply