Tag Archives: sys.stderr.write(f”ERROR: {exc}”)

[PIP command error] after upgrading the PIP in Ubuntu 16.04, execute the PIP command to report an error sys.stderr.write (F “error: {exc}”)

Get the repair file get-pip.py

    Access get repair file

    Find the download link of the corresponding version file, such as Python 3.5, https://bootstrap.pypa.io/pip/3.5/get-pip.py

    Download using WGet, WGet https://bootstrap.pypa.io/pip/3.5/get-pip.py

    Execute the file using the corresponding version of python, Python 3.5 get pip. Py