python包管理工具pip

查看版本

pip -V

查看已经安装的包 pip list

C:\Users\hongjh>pip list
Package        Version
-------------- ---------
beautifulsoup4 4.9.3
certifi        2020.12.5
cffi           1.14.3
chardet        4.0.0
cryptography   3.2.1
idna           2.10
lxml           4.6.3
pip            21.0.1
pycparser      2.20
pyOpenSSL      19.1.0
requests       2.25.1
selenium       3.141.0
setuptools     39.0.1
six            1.15.0
soupsieve      2.2.1
urllib3        1.26.3
WARNING: You are using pip version 21.0.1; however, version 21.1.2 is available.
You should consider upgrading via the 'd:\software\py3.7.0\python.exe -m pip install --upgrade pip' command.

pip自我升级

pip install -U pip

C:\Users\hongjh>pip install -U pip
Requirement already satisfied: pip in d:\software\py3.7.0\lib\site-packages (21.0.1)
Collecting pip
  Downloading pip-21.1.2-py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 139 kB/s
Installing collected packages: pip

安装包

pip install package_name

卸载包

pip uninstall package_name

安装指定版本的包

pip install package_name=x.x.x

搜索包

pip search package_name

  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

相关推荐
©️2020 CSDN 皮肤主题: 猿与汪的秘密 设计师:白松林 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值