이 아이디어 문제를 어떻게 해결합니까?

이 아이디어 문제를 어떻게 해결합니까?

pip다음을 사용하여 설치 하려고합니다 .플라스크우분투에서.

그러나 다음과 같은 오류가 발생합니다.

user_1@dell-vostro:~$ sudo -H pip3 install --upgrade pip
[sudo] password for user_1: 
Collecting pip
  Downloading https://files.pythonhosted.org/packages/09/bd/2410905c76ee14c62baf69e3f4aa780226c1bbfc9485731ad018e35b0cb5/pip-22.3.1-py3-none-any.whl (2.1MB)
    100% |████████████████████████████████| 2.1MB 631kB/s 
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
Successfully installed pip-22.3.1

user_1@dell-vostro:~$ pip -V
Traceback (most recent call last):
  File "/home/user_1/.local/bin/pip", line 7, in <module>
    from pip._internal.cli.main import main
  File "/home/user_1/.local/lib/python3.5/site-packages/pip/_internal/cli/main.py", line 57
    sys.stderr.write(f"ERROR: {exc}")
                                   ^
SyntaxError: invalid syntax

user_1@dell-vostro:~$ pip install --upgrade pip
Traceback (most recent call last):
  File "/home/user_1/.local/bin/pip", line 7, in <module>
    from pip._internal.cli.main import main
  File "/home/user_1/.local/lib/python3.5/site-packages/pip/_internal/cli/main.py", line 57
    sys.stderr.write(f"ERROR: {exc}")
                                   ^
SyntaxError: invalid syntax


user_1@dell-vostro:~$ 

어떻게 해결할 수 있나요?

관련 정보