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


Groups > comp.lang.python > #81759

Re: Invalid Syntax Installing pip - ez_setup.py

References <b24b1d2e-df53-49ab-86c8-26014c30cb59@googlegroups.com>
Date 2014-12-02 04:06 +1100
Subject Re: Invalid Syntax Installing pip - ez_setup.py
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.16456.1417453626.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Dec 2, 2014 at 3:58 AM,  <billyfurlong@gmail.com> 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 "<stdin>", 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

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


Thread

Invalid Syntax Installing pip - ez_setup.py billyfurlong@gmail.com - 2014-12-01 08:58 -0800
  Re: Invalid Syntax Installing pip - ez_setup.py Chris Angelico <rosuav@gmail.com> - 2014-12-02 04:06 +1100
    Re: Invalid Syntax Installing pip - ez_setup.py Billy Furlong <billyfurlong@gmail.com> - 2014-12-01 10:14 -0800
      Re: Invalid Syntax Installing pip - ez_setup.py Billy Furlong <billyfurlong@gmail.com> - 2014-12-01 11:09 -0800

csiph-web