Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97229

Re: Linux Mint installation of Python 3.5

Path csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!border2.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <zachary.ware@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'binary': 0.05; 'dependency': 0.07; 'prefix': 0.07; 'skip:/ 10': 0.07; 'subject:installation': 0.07; 'scripts': 0.09; 'path.': 0.09; 'release,': 0.09; 'python': 0.10; 'assume': 0.11; 'anyway': 0.11; 'up-to-date': 0.13; 'ignore': 0.14; 'explicitly': 0.15; "'make": 0.16; '10:00': 0.16; 'binary.': 0.16; 'finicky': 0.16; 'personally,': 0.16; 'wrote:': 0.16; 'sender:addr:gmail.com': 0.18; 'shell': 0.18; 'versions': 0.20; '2015': 0.20; 'to:name :python-list@python.org': 0.20; 'not,': 0.22; '2.x': 0.22; '3.x': 0.22; 'assuming': 0.22; 'sep': 0.22; 'am,': 0.23; "python's": 0.23; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'install': 0.25; 'installed': 0.26; 'chris': 0.26; 'message- id:@mail.gmail.com': 0.27; 'said,': 0.27; 'transition': 0.27; 'looks': 0.29; 'regular': 0.29; "i'm": 0.30; 'though,': 0.32; 'problem': 0.33; 'source': 0.33; 'machine.': 0.33; 'ubuntu': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'easiest': 0.35; 'path': 0.35; 'something': 0.35; 'but': 0.36; 'should': 0.36; 'possible': 0.36; 'development.': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'really': 0.37; "won't": 0.38; 'version': 0.38; 'thank': 0.38; 'end': 0.39; 'to:addr:python.org': 0.40; 'future': 0.60; 'care': 0.60; 'your': 0.60; 'skip:u 10': 0.61; 'default': 0.61; 'more': 0.63; 'different': 0.63; 'safe': 0.63; 'upgrading': 0.72; 'friendly': 0.74; '2.7.': 0.84; '3.4': 0.84; 'apt-get': 0.84; 'figueiredo': 0.84; 'mario': 0.84; 'pip': 0.84; 'touching': 0.84; ':).': 0.91; 'step.': 0.91; 'period.': 0.95
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=vgH8NtBsZoz//NyJFhiGUV5YuqDFzZIfcgRd7n5ToqE=; b=gqKrpWlPEePdI4oYv6pkJQTgonndFBxL9cm2P1WB+15biwZMUACAyxSN5mpFLOnT2T akLry+fw7nKJmz4nG60Z8KPAgA+6b/7yzOEGRghK71nLyRgldjDRGPK4gTuB5xARWbXj /w5AqWTjdzwtAfIstfEOah8ZFkAggkUZ8UR8yidD6010pwQ2qlvJLAi4NCovaugbKn1Y JG2nOXA6YNaU648+8rTk9hFmUeaYVMAd7ty1e5LVZhsdz7PDRssRINVBAZRJP178X2fD df5PqQrT3wmdNAn6380rZajib3k0df5zJxfP8dc0POIXPVfg7RpWlj7JFC72jLOOo8rx YcbA==
X-Received by 10.107.152.75 with SMTP id a72mr2494764ioe.129.1443582866272; Tue, 29 Sep 2015 20:14:26 -0700 (PDT)
MIME-Version 1.0
Sender zachary.ware@gmail.com
In-Reply-To <560B5048.50100@gmx.com>
References <560B4AFA.2040305@gmx.com> <CAPTjJmpc1fDGU9b=2uP7udK8cA_QuDFMsTDPgpHrHruBJigDMQ@mail.gmail.com> <560B5048.50100@gmx.com>
From Zachary Ware <zachary.ware+pylist@gmail.com>
Date Tue, 29 Sep 2015 22:14:06 -0500
X-Google-Sender-Auth T_LVRLBc64x5iUH2QOjtFeYXQAs
Subject Re: Linux Mint installation of Python 3.5
To "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.257.1443582874.28679.python-list@python.org> (permalink)
Lines 42
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1443582874 news.xs4all.nl 23860 [2001:888:2000:d::a6]:42383
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97229

Show key headers only | View raw


On Tue, Sep 29, 2015 at 10:00 PM, Mario Figueiredo <marfig@gmx.com> wrote:
> On 09/30/2015 03:44 AM, Chris Angelico wrote:
>>
>> The easiest way to install something from source is to use 'make
>> altinstall' for the final step. That should install you a 'python3.5'
>> binary without touching the 'python3' binary. That said, though, it's
>> entirely possible that upgrading 'python3' from 3.4 to 3.5 won't
>> actually break anything; it won't break any script that explicitly
>> looks for python3.4, and there's not a huge amount of breakage. But to
>> be on the safe side, use altinstall and explicitly ask for python3.5
>> any time you want it.
>>
>
> Thank you Chris. That will set me on my path.
>
>> Personally, I use the regular 'make install', but that's because I'm
>> on Debian - the system Python is 2.7.
>
> Unfortunately Ubuntu based distros are going through a 2.x to 3.x
> transition period. Both Pythons are installed and are system dependencies.
>
> And their finicky dependency on Python really make these distros not
> very friendly for Python development. If I do end up successfully
> upgrading from 3.4 to 3.5, I will most likely forfeit my ability to
> upgrade the Mint version in the future without a full system
> installation. So the solution is to just maintain 3 different versions
> of python my machine. Ridiculous.

It should be no problem to just do `./configure && make profile_opt &&
make install`.  The default prefix is /usr/local/; the system python's
prefix is /usr/.  Assuming /usr/local/bin is on your PATH before
/usr/bin, 'python3' from your shell will be python3.5, but all system
scripts should be using /usr/bin/python3 explicitly (if not, it's a
bug; report it to Mint).  Let the system take care of its own 3.4, you
can ignore it and use 3.5.  You won't be able to use apt-get to
install packages for 3.5, but since you're using 3.5.0 less than a
month after release, I assume you want more up-to-date packages anyway
:).  Just use pip for any global packages you want for 3.5, and both
venv and pip for any packages you don't want to be global.

-- 
Zach

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Linux Mint installation of Python 3.5 Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-09-29 22:14 -0500

csiph-web