解决ModuleNotFoundError: No module named ‘pip’ 错误方案

ubuntu24.04系统,因创建python虚拟环境导致新旧版本冲突,出现ModuleNotFoundError: No module named ‘pip’ 提示。

通过重新安装python-pip无法解决,使用get-pip.py脚本解决。

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

python get-pip.py

Leave a Reply

您的邮箱地址不会被公开。 必填项已用 * 标注

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>