Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'syntax': 0.04; 'upgraded': 0.07; 'alias': 0.09; 'bash': 0.09; 'cc:addr :python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'incorrect': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'install': 0.23; 'error': 0.23; 'instead.': 0.24; 'cc:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'message- id:@mail.gmail.com': 0.30; 'work.': 0.31; 'getting': 0.31; '"",': 0.31; 'apparently': 0.31; 'file': 0.32; 'run': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'should': 0.36; 'error.': 0.37; 'skip:u 10': 0.60; 'skip:a 30': 0.61; 'name': 0.63; 'invalid': 0.68; 'still.': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=UAuiePrJy3umhpNhFHUXvkFrfH2T9Zl4GlcRFQixPdc=; b=Rvy6HEWshxD6Gf5FAjZ7r9VngmlbQ3KVG8oOEJYyAhmjr35cfPY6h1Ei9m8FPg8dX3 udRetBMppS8l+zeelFOb1+2gGvNfyYk9JSUNkkKm9QUZBLVRHaXsR44A79ia/O1lD7cj NLG25uYwQDMf21TClijNFqWL3vaQZbtZ3C8tPxgEblzj93TLTYtI7jRtQk6ULyS9QeuM 8S8xpe8mYjeKdPQlfB19i4pP3LdHgUeJ9cnx2l6qV8QVenfuSADwyF0IjlFv/7R8p8YT I55TArv2DGMPqnL/kzZODypKr9+LKy3uv+2Q5ZEqY0VljiYjgSmaUFUnvS6dqwo8IEiD xzmw== MIME-Version: 1.0 X-Received: by 10.107.134.39 with SMTP id i39mr52899591iod.53.1417453613223; Mon, 01 Dec 2014 09:06:53 -0800 (PST) In-Reply-To: References: Date: Tue, 2 Dec 2014 04:06:53 +1100 Subject: Re: Invalid Syntax Installing pip - ez_setup.py From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417453626 news.xs4all.nl 2978 [2001:888:2000:d::a6]:51550 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81759 On Tue, Dec 2, 2014 at 3:58 AM, wrote: > Getting an error when I try to install ez_setup.py. I thought that this was an issues with an incorrect version of python, so I upgraded to 2.7.5 successfully. But unfortunately I get the same error. > > > File "", line 51 > with archive_context(archive_filename): > ^ > SyntaxError: invalid syntax When you run 'python', you apparently are getting the old version still. Try 'python2.7' instead. If you used a bash alias to change the meaning of the word 'python', that won't work with sudo. But the fuller name should work. ChrisA