首页 > 解决方案 > 如何使用 Python 3.8 安装 pip?

问题描述

我想知道如何使用最新版本的 Python 3.8 安装 pip。我尝试将 curl https://bootstrap.pypa.io/get-pip.py > get-pip.py 放入命令行,但出现语法错误,看起来像这样enter image description here我想知道是否有人可以告诉我我做错了什么。

标签: pythoncmdpip

解决方案


您需要在shell 命令行上执行该代码,而不是在 Python 中。

但除此之外,通常还有更好的安装 pip 的方法,请参考官方说明


推荐阅读