Pip的基础知识,及WARNING upgrading pip

WARNING: You are using pip version 20.1.1; however, version 20.3.3 is available.
You should consider upgrading via the 'Python\python.exe -m pip install --upgrade pip' command.

查看pip是否已安装

Use the following command to check whether pip is installed:

PS C:> py -m pip --version
pip 20.3.3 from D:\codetool\Python\lib\site-packages\pip (python 3.7)
pip X.Y.Z from ...\site-packages\pip (python X.Y)

下载&&安装pip

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

或者下载 get-pip.py

py get-pip.py
或者
py get-pip.py --no-index --find-links=/local/copies

在这里插入图片描述

C:\> py -m pip install SomePackage
[...]
Successfully installed SomePackage

查看Pip版本信息

PS C:> pip show pip
Name: pip
Version: 20.1.1
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: pypa-dev@groups.google.com
License: MIT

升级Pip(Upgrading pip)

在这里插入图片描述

python -m pip install -U pip
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.1.1
    Uninstalling pip-20.1.1:
      Successfully uninstalled pip-2
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值