You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@ANIMENAS:~# python get-pip.py --python-version "2.7.12"
Traceback (most recent call last):
File "get-pip.py", line 24244, in
main()
File "get-pip.py", line 199, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
from pip._internal.cli.main import main as pip_entry_point
File "/tmp/tmp9PQmOe/pip.zip/pip/_internal/cli/main.py", line 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax
Code of Conduct
I agree to follow the PSF Code of Conduct
The text was updated successfully, but these errors were encountered:
pip version
none
Python version
2.7.12
OS
Synology DSM 6.2.3-25426 Update 3
Additional information
Hardware: DS420j
Description
syntax error near unexpected token `f"ERROR: {exc}"'
Expected behavior
Python 2.7.12 doesn't support f-string syntax. need rollback to str.format() or %-formatting syntax.
How to Reproduce
sudo -i
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py --python-version "2.7.12"
Output
root@ANIMENAS:~# python get-pip.py --python-version "2.7.12"
Traceback (most recent call last):
File "get-pip.py", line 24244, in
main()
File "get-pip.py", line 199, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
from pip._internal.cli.main import main as pip_entry_point
File "/tmp/tmp9PQmOe/pip.zip/pip/_internal/cli/main.py", line 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax
Code of Conduct
The text was updated successfully, but these errors were encountered: