python

py3笔记18:pip freeze

2022-04-29  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读