我正在尝试使用pip
安装烧瓶在Ubuntu上。
但是,我收到以下错误:
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:~$
我该如何解决?