使用pip 命令后出现以下错误: sys.stderr.write(f"ERROR: {exc}") 原因是 Python 2.7 已经没有维护了,pip 社区在放弃了对 python 2.7 的支持。需要安装旧版本的 pip pip install --upgrade "pip < 21.0"