I am starting to make a app using bitbucket CI and i am using the following steps to deploy the application and the steps to install pip is failing.
script:
- apt-get update
- apt-get install -y python-dev
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
... and a few more steps
Dont know why but python get-pip.py
step fails with the following error.
Traceback (most recent call last):
File "get-pip.py", line 24226, in <module>
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/tmpUgc5ng/pip.zip/pip/_internal/cli/main.py", line 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax
This worked fine upto yesterday. Not sure why this is not working now.
I thought it may be because of windows but i checked in my local machine running linux but these steps but they worked fine.
question from:
https://stackoverflow.com/questions/65875599/why-do-i-get-invalid-syntax-error-when-i-try-to-do-anything-with-pip 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…