1.windows下cmd中执行where python,确定python的安装目录 2.在python的安装目录下的Scripts目录下执行以下命令即可 python -m pip install --upgrade pip