sys.stderr.write(f“ERROR: {exc}“) ^ SyntaxError: invalid syntax

created at 10-16-2021 views: 1

solution

in Linux, use command:

wget https://bootstrap.pypa.io/3.5/get-pip.py
python3 get-pip.py

In Windows, first download the file by yourself and then execute the second record of bacteria.

But in the process of trying to solve the problem, the get-pip.py file was not found. So visit

https://bootstrap.pypa.io/

Observe that the relevant version of the get-pip.py file is found in pip

pip

In summary, the command to get get-pip.py should be

wget https://bootstrap.pypa.io/pip/3.5/get-pip.py

After the download is complete, execute the following command

python3 get-pip.py
Please log in to leave a comment.