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-21.0.1
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 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax
The command '/bin/sh -c /bin/bash /home/docker/requirements.sh' returned a non-zero code: 1
我正在尝试安装 repo 版本并不断收到此错误
答案1
PIP
是一个 Python 包管理工具,它就像顶级包管理员,它肯定无法自行安装。
看来你的 Python 版本是 3.5,你可以使用以下方法升级你的 PIP
python -m pip install -U pip