I suggest you have a look through the feed that you link to and see if it provides a package which has /usr/bin/python3 in, and if it doesn't then just make a python3 -> python3.6 symlink (which is all you need).
Ross On 2 May 2018 at 20:28, Raymond Yeung <rksye...@hotmail.com> wrote: > Thanks Zoran. > > > My Linux build machine uses Centos 7. I thought I'd done the installation > to Python 3.6.5. If this is not Python3 > 3.4.0, then I'm confused. The > link I follow for installation is here: https://janikarhunen.fi/how- > to-install-python-3-6-1-on-centos-7.html > > > python3.6 -V > > Python 3.6.5 > > >python -V > > Python 2.7.5 > > > Anyway, I realize what went wrong. I'd Krogoth (a 2016 Poky) running > before. Now as I'm migrating to Rocko (a 2017 Poky), I try to solve a > Python versioning issue by installing Python only (as above). However, > there may be other packages I need to update. After getting latest > Reference Manual, download and install latest environment, I no longer have > python3 issue. However, the Python version of why Python3.6 won't satisfy > Python > 3.4.0 still puzzles me (though no longer blocking me). > > > Raymond > > > ------------------------------ > *From:* Zoran Stojsavljevic <zoran.stojsavlje...@gmail.com> > *Sent:* Tuesday, May 1, 2018 11:19 PM > *To:* Raymond Yeung > *Cc:* yocto@yoctoproject.org > *Subject:* Re: [yocto] Problem with Python when running oe-init-build-env > > Hello Raymond, > > The problem is that you (talking about your host distro): > [1] Do NOT have python3 package installed; > [2] Do have python3 package < 3.4.0 version, so you need to upgrade! > > So, I have no idea which host distro you are using, but: > [1] If Debian/Ubuntu, then: apt-get install python3 > If Fedora, then dnf install python3 > [2] If Debian/Ubuntu, then: apt-get update python3 > If Fedora, then dnf update python3 > > Hope this helps, > Zoran > _______ > > On Tue, May 1, 2018 at 10:43 PM, Raymond Yeung <rksye...@hotmail.com> > wrote: > > I'd just git cloned Rocko and meta-ti. When I try to source > > oe-init-build-env, I got errors: > > > > > > -bash: python3: command not found > > > > BitBake requires Python 3.4.0 or later as 'python3'. "python -V" gives > > "Python 2.7.9". "python3" is not in $PATH. I'd followed some detailed > > online description to install Python 3.6 on CentOS 7. However, after > > installation, it looks like I need to invoke it with python3.6. > > > > > > How does this work now? I suppose the oe-init-build-env script > uses/expects > > python3, not python3.6. > > > > > > Any insight? > > > > > > Raymond > > > > > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > yocto Info Page <https://lists.yoctoproject.org/listinfo/yocto> > lists.yoctoproject.org > Discussion of all things about the Yocto Project. Read our Community > Guidelines or learn more about how to participate in other community > discussions. Subscribe before posting to bypass moderation. > > > > > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > >
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto