0

When I try to install anything using pip3 i get this error

Traceback (most recent call last):
  File "/usr/local/bin/pip3", line 7, in <module>
    from pip._internal.cli.main import main
  File "/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/main.py", line 57
    sys.stderr.write(f"ERROR: {exc}")
                                   ^
SyntaxError: invalid syntax

I saw some solutions for this type of questions but none helped me.

I am using ubuntu 16.04 instance in google cloud Please help me out of this

  • 2
    Python 3.5 doesn't support f-strings (they were introduced in Python 3.6: https://www.python.org/dev/peps/pep-0498/). You should either upgrade Python or downgrade `pip` – ForceBru Nov 13 '21 at 05:57

0 Answers0