Invalid Syntax Installing pip - ez_setup.py

Chris Angelico rosuav at gmail.com
Mon Dec 1 12:06:53 EST 2014


On Tue, Dec 2, 2014 at 3:58 AM,  <billyfurlong at 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



More information about the Python-list mailing list