python命令pip list

Python / 115人浏览 / 0人评论

python命令pip list检查是否已存在需要的包

查看安装python版本

windows cmd 中:python
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit();

pip list检查是否已存在需要的包

windows cmd 中:pip list
Package    Version
---------- --------
pip        21.2.4
setuptools 40.8.0
you-get    0.4.1545
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the 'e:\program files\python\python.exe -m pip install --upgrade pip' command.

windows cmd 中:python -m pip install --upgrade pip
Requirement already satisfied: pip in e:\program files\python\lib\site-packages (21.2.4)
Collecting pip
  Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
     |████████████████████████████████| 1.7 MB 37 kB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.2.4
    Uninstalling pip-21.2.4:
      Successfully uninstalled pip-21.2.4
Successfully installed pip-21.3.1

转载注明:

扩展查找

0 条评论

还没有人发表评论

发表评论 取消回复

记住我的信息,方便下次评论
有人回复时邮件通知我