title: Why am I getting invalid syntax error while installing packages with pip
body: <p>In Debian server when I am installing boto3 using pip I get the following error:</p>
  
  <pre><code>$ python3.2 -m pip install boto3
  
  Traceback (most recent call last):
  
    File "/usr/lib/python3.2/runpy.py", line 161, in _run_module_as_main
      "__main__", fname, loader, pkg_name)
  
    File "/usr/lib/python3.2/runpy.py", line 74, in _run_code
      exec(code, run_globals)
  
    File "/usr/local/lib/python3.2/dist-packages/pip/__main__.py", line 16, in &lt;module&gt;
      from pip._internal import main as _main  # isort:skip # noqa
  
    File "/usr/local/lib/python3.2/dist-packages/pip/_internal/__init__.py", line 40, in &lt;module&gt;
      from pip._internal.cli.autocompletion import autocomplete
  
    File "/usr/local/lib/python3.2/dist-packages/pip/_internal/cli/autocompletion.py", line 8, in &lt;module&gt;
      from pip._internal.cli.main_parser import create_main_parser
  
    File "/usr/local/lib/python3.2/dist-packages/pip/_internal/cli/main_parser.py", line 8, in &lt;module&gt;
      from pip._internal.cli import cmdoptions
  
    File "/usr/local/lib/python3.2/dist-packages/pip/_internal/cli/cmdoptions.py", line 17, in &lt;module&gt;
      from pip._internal.locations import USER_CACHE_DIR, src_prefix
  
    File "/usr/local/lib/python3.2/dist-packages/pip/_internal/locations.py", line 13, in &lt;module&gt;
      from pip._internal.utils import appdirs
  
    File "/usr/local/lib/python3.2/dist-packages/pip/_internal/utils/appdirs.py", line 12, in &lt;module&gt;
      from pip._internal.utils.compat import WINDOWS, expanduser
  
    File "/usr/local/lib/python3.2/dist-packages/pip/_internal/utils/compat.py", line 62
  
  return u"".join(u"\\x%x" % c for c in raw_bytes), err.end
  
               ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p><strong>Note: pip version is 18.1</strong></p>