美文网首页python
py3笔记18:pip freeze

py3笔记18:pip freeze

作者: _百草_ | 来源:发表于2022-04-29 12:04 被阅读0次

1. pip freeze获取已安装的模块及对应的版本

pip freeze

2. pip install -r <file>

-r, --requirement
从给定的需求文件安装。此选项可以多次使用

3. pip show <module>查看安装版本

C:\WINDOWS\system32>pip show pytest
Name: pytest
Version: 6.2.2
Summary: pytest: simple powerful testing with Python
Home-page: https://docs.pytest.org/en/latest/
Author: Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, Floris Bruynooghe, Brianna Laugher, Florian Bruhin and others
Author-email: None
License: MIT
Location: c:\me\testing\python\python39\lib\site-packages
Requires: attrs, toml, atomicwrites, py, iniconfig, pluggy, packaging, colorama
Required-by:

C:\WINDOWS\system32>

其他详情

https://www.runoob.com/w3cnote/python-pip-install-usage.html

相关文章

网友评论

    本文标题:py3笔记18:pip freeze

    本文链接:https://www.haomeiwen.com/subject/ibpksltx.html