title: get-pip.py returns SyntaxError: invalid syntax
body: <p>I installed pip from this command</p>
  <pre><code>curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
  </code></pre>
  <p>and when I did <code>sudo python2 get-pip.py</code></p>
  <pre><code>Traceback (most recent call last):
    File &quot;get-pip.py&quot;, line 24226, in &lt;module&gt;
      main()
    File &quot;get-pip.py&quot;, line 199, in main
      bootstrap(tmpdir=tmpdir)
    File &quot;get-pip.py&quot;, line 82, in bootstrap
      from pip._internal.cli.main import main as pip_entry_point
    File &quot;/tmp/tmpf3jeCG/pip.zip/pip/_internal/cli/main.py&quot;, line 60
      sys.stderr.write(f&quot;ERROR: {exc}&quot;)
                                     ^
  SyntaxError: invalid syntax
  </code></pre>
  <p>It was working fine a few weeks back and then suddenly it has stopped working. I really need to know what I have done wrong? Is there any other way I can do it? I'm using Atlassian Bitbucket which has Java8 image. I also need pip installed since I can not have more than one image. I'm downloading it locally using the above command and making pip work. Is there anyother way I can use it to make it work?</p>