compile python
Brian Cluff
brian at snaptek.com
Mon Apr 11 07:36:09 MST 2016
You could just add that repository but...
The add-apt-repository and PPAs are an Ubuntu thing, and while Ubuntu is
based off of Debian there are quite a few things that get changed along
the way, so you can't just use package repositories from one on the
other whenever you want, especially with things like python that if you
break it can really mess up stuff in your system. The nasty part is
that it might seem to work fine right away, but you've set yourself up
for a problem that comes later on because the guy making the PPA uses
some strange version scheme that will keep any other version from
loading without specifically hammering the new one in there, and that
can keep everything else from being able to upgrade.
Since what you are looking for is already packages standard for the
system and you just need a newer version; you're probably better off
switching to Raspbian's equivalent of testing or unstable, upgrading
your python packages to the version you need and then switching back to
stable so you don't accidentally upgrade your whole system.
Brian Cluff
On 04/11/2016 05:14 AM, Michael wrote:
> the os on the pi is raspbian so the package manager is apt. When you
> say to add a repo do you mean the ppa but not to add it as a ppa but
> just to add it as a regular repository? instead of :
>
> sudo add-apt-repository -y
> https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes-python2.7
> <https://launchpad.net/%7Efkrull/+archive/ubuntu/deadsnakes-python2.7>
>
> add:
>
> https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes-python2.7
> <https://launchpad.net/%7Efkrull/+archive/ubuntu/deadsnakes-python2.7>
>
> to /etc/apt/sources.list (or wherever they've moved it to). I know
> they've moved it but is it ok to use /etc/apt/sources.list?
>
> On Mon, Apr 11, 2016 at 1:03 AM, Todd Millecam <tyggna at gmail.com
> <mailto:tyggna at gmail.com>> wrote:
>
> 1) find out which distro is on your pi
> 2) find out what package manger it uses
> 3) find out how to add a repo to it and add the python repo
> 4) run an update to get the new packages list
> 5) install python
> *) alternatively, get the python-arm package (.deb, .rpm, or
> .tar.gz) and install it manually
>
> Cross compiling is not for the faint of heart and unless you're
> comfortable editing a makefile and possibly reading a coredump
> then modifying C code either by hand or using patch, then I would
> advise against it.
>
>
> On Sun, Apr 10, 2016 at 7:30 PM, Michael <bmike1 at gmail.com
> <mailto:bmike1 at gmail.com>> wrote:
>
> I'm beginning to think I should compile python on the main box
> and then install it to the pi through ssh. Sound like a good plan?
>
> On Sun, Apr 10, 2016 at 10:01 PM, Michael <bmike1 at gmail.com
> <mailto:bmike1 at gmail.com>> wrote:
>
> yeah... my pi doesn't recognize the
> command add-apt-repository (what it is, I got it written
> down).
>
> On Sun, Apr 10, 2016 at 9:56 PM, Todd Millecam
> <tyggna at gmail.com <mailto:tyggna at gmail.com>> wrote:
>
> A PPA is an individual's repository. They're used to
> dristribute more up-to-date versions of software than
> the distro maintainer. A good example of a PPA is
> postgresql. They test their new builds on Ubuntu, but
> Ubuntu only tests one of their builds every 6 months.
> By adding the Postgresql PPA, you can get the most
> up-to-date stuff in a more timely fashion.
>
> Another good use for a PPA is for non x86-64
> architectures (which the raspberry pi is). Adding a
> PPA is the same operation as adding a repository.
> apt-add-repository is the command for Ubuntu I believe.
>
> I say this because I've attempted to compile things on
> a Pi 2, and it's an overnight wait.
>
> On Sun, Apr 10, 2016 at 5:43 PM, koder
> <iscreamkid at gmail.com <mailto:iscreamkid at gmail.com>>
> wrote:
>
> Mike,
>
> What load are you running on your Pi?
>
> I have the B and it comes loaded with 2.7.3, which
> is, for all practical purposes the same, I would
> think.
>
> This link addresses the issue in the Ubuntu
> environment and may be informative.
>
> if you are running the early Pi, perhaps yo might
> want to consider getting a second SD chip and
> experimenting with a newer version of Raspbian, or
> at least give yourself a spare load that you can
> mess up without grief.
>
>
>
>
> On 04/10/2016 04:34 PM, Michael wrote:
>> my little raspberry pi needs at the least
>> pyhon2.7.10. If it understood what a ppa is this
>> would be a simple matter but as fate would have
>> it I need to compile from source. Will doing that
>> screw up anything ?
>>
>> --
>> :-)~MIKE~(-:
>>
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list -PLUG-discuss at lists.phxlinux.org
>> <mailto:PLUG-discuss at lists.phxlinux.org>
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> PLUG-discuss at lists.phxlinux.org
> <mailto:PLUG-discuss at lists.phxlinux.org>
> To subscribe, unsubscribe, or to change your mail
> settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
>
> --
> Todd Millecam
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> PLUG-discuss at lists.phxlinux.org
> <mailto:PLUG-discuss at lists.phxlinux.org>
> To subscribe, unsubscribe, or to change your mail
> settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
>
> --
> :-)~MIKE~(-:
>
>
>
>
> --
> :-)~MIKE~(-:
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> <mailto:PLUG-discuss at lists.phxlinux.org>
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
>
> --
> Todd Millecam
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> <mailto:PLUG-discuss at lists.phxlinux.org>
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
>
> --
> :-)~MIKE~(-:
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20160411/e504b2ff/attachment.html>
More information about the PLUG-discuss
mailing list