I am trying to install software that has a component that claims it can be installed using the latest python3-pip. I tried apt-get remove python3-pip followed by apt-get install python3-pip and it reported success, but didn't actually work:
% pip2 --version
ppip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
% pip3 --version
Traceback (most recent call last):
  File "/usr/bin/pip3", line 11, in <module>
    sys.exit(main())
  File "/home/xxx/.local/lib/python3.5/site-packages/pip/__init__.py", line 11, in main
    from pip._internal.utils.entrypoints import _wrapper
  File "/home/xxx/.local/lib/python3.5/site-packages/pip/_internal/utils/entrypoints.py", line 12
    f"pip{sys.version_info.major}",
                                 ^
SyntaxError: invalid syntax
What is the simplest way to install python3 components in Ubuntu 16?
(For what it's worth, I noticed some people have had somewhat similar issues with pip2, maybe because they accidently "upgraded" pip3 to an unstable version. It's possible that this could have happened on my system, but I'm not sure why apt-get wouldn't fix it).
