学无先后,达者为师

网站首页 Python教程 正文

解决python pip 安装报语法错误sys.stderr.write(f“ERROR: {exc}“)

作者:StriveBen 更新时间: 2022-02-18 Python教程

ubuntu16中,python3.5在安装pip时,用apt 进行安装后,运行会出现下面这样的语法错误:
在这里插入图片描述
可以使用下面方法安装以前的pip版本解决:

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

在这里插入图片描述

原文链接:https://blog.csdn.net/hardhard123/article/details/113251805

栏目分类
最近更新