01 pip获得安装包列表


Python软件包

如下,是在自己计算机中安装看的 Python 3.12.10 的软件包列表

Package                   Version
------------------------- ------------
absl-py                   2.1.0
asttokens                 3.0.0
astunparse                1.6.3
beautifulsoup4            4.12.3
cachetools                5.5.1
certifi                   2024.8.30
cffi                      1.17.1
charset-normalizer        3.4.0
clipboard                 0.0.4
colorama                  0.4.6
coloredlogs               15.0.1
comm                      0.2.2
contourpy                 1.3.1
cycler                    0.12.1
debugpy                   1.8.11
decorator                 5.1.1
enchant                   0.0.1
eng_to_ipa                0.0.2
et_xmlfile                2.0.0
executing                 2.1.0
extendedos                0.1.7
filelock                  3.16.1
flatbuffers               24.3.25
fonttools                 4.55.3
fsspec                    2024.10.0
future                    1.0.0
gast                      0.6.0
google-api-core           2.24.0
google-auth               2.38.0
google-cloud-speech       2.30.0
google-cloud-texttospeech 2.24.0
google-pasta              0.2.0
googleapis-common-protos  1.66.0
graphviz                  0.20.3
grpcio                    1.70.0
grpcio-status             1.70.0
h5py                      3.12.1
hiddenlayer               0.3
httplib2                  0.22.0
humanfriendly             10.0
idna                      3.10
imageio                   2.36.1
imageio-ffmpeg            0.5.1
intel-openmp              2021.4.0
ipykernel                 6.29.5
ipython                   8.30.0
iso8601                   2.1.0
jedi                      0.19.2
jieba                     0.42.1
Jinja2                    3.1.4
jupyter_client            8.6.3
jupyter_core              5.7.2
keras                     3.7.0
kiwisolver                1.4.7
langdetect                1.0.9
libclang                  18.1.1
lxml                      5.3.0
Markdown                  3.7
markdown-it-py            3.0.0
MarkupSafe                3.0.2
matplotlib                3.9.3
matplotlib-inline         0.1.7
mdurl                     0.1.2
mkl                       2021.4.0
ml-dtypes                 0.4.1
MouseInfo                 0.1.3
moviepy                   2.1.1
mpmath                    1.3.0
namex                     0.0.8
nest-asyncio              1.6.0
networkx                  3.4.2
numpy                     2.0.2
opencv-python             4.10.0.84
openpyxl                  3.1.5
opt_einsum                3.4.0
optree                    0.13.1
packaging                 24.2
parso                     0.8.4
pillow                    10.4.0
pip                       25.0.1
platformdirs              4.3.6
pptx-tools                0.1.10
proglog                   0.1.10
prompt_toolkit            3.0.48
proto-plus                1.25.0
protobuf                  5.29.1
psutil                    6.1.0
pure_eval                 0.2.3
pyasn1                    0.6.1
pyasn1_modules            0.4.1
PyAutoGUI                 0.9.54
pycparser                 2.22
pycstruct                 0.12.2
pydub                     0.25.1
pyenchant                 3.2.2
PyGetWindow               0.0.9
Pygments                  2.18.0
PyMsgBox                  1.0.9
pyparsing                 3.2.0
pyperclip                 1.9.0
pyreadline3               3.5.4
PyRect                    0.2.0
PyScreeze                 1.0.1
pyserial                  3.5
python-dateutil           2.9.0.post0
python-dotenv             1.0.1
python-pptx               1.0.2
pytweening                1.2.0
pywin32                   308
PyYAML                    6.0.3
pyzmq                     26.2.0
requests                  2.32.3
rich                      13.9.4
rsa                       4.9
scikit-video              1.1.11
scipy                     1.14.1
serial                    0.0.97
setuptools                75.6.0
six                       1.17.0
soundfile                 0.12.1
soupsieve                 2.6
stack-data                0.6.3
sympy                     1.13.1
tbb                       2021.13.1
tensorboard               2.18.0
tensorboard-data-server   0.7.2
termcolor                 2.5.0
torch                     2.5.1+cu118
torchaudio                2.5.1+cu118
torchsummary              1.5.1
torchview                 0.2.6
torchvision               0.20.1+cu118
torchviz                  0.0.3
tornado                   6.4.2
tqdm                      4.67.1
traitlets                 5.14.3
typing_extensions         4.12.2
urllib3                   2.2.3
wcwidth                   0.2.13
Werkzeug                  3.1.3
wheel                     0.45.1
winshell                  0.6
wrapt                     1.17.0
XlsxWriter                3.2.1

批量安装

requirements.txt

可以编写一个安装 TEXT 文档, 例如:

requirements.txt

numpy=1.26.4
scipy=1.11.4
matplotlib=3.10.3

安装命令

pip install -r requirements.txt

Looking in indexes: http://mirrors.aliyun.com/pypi/simple/, https://repo.huaweicloud.com/repository/pypi/simple
Requirement already satisfied: numpy1.26.4 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 1)) (1.26.4)
Collecting scipy
1.11.4 (from -r requirements.txt (line 2))
Downloading https://repo.huaweicloud.com/repository/pypi/packages/e0/9e/80e2205d138960a49caea391f3710600895dd8292b6868dc9aff7aa593f9/scipy-1.11.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (36.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/36.4 MB ? eta -:–:-- ━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━ 13.9/36.4 MB 69.3 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━ 30.1/36.4 MB 75.4 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.4/36.4 MB 70.2 MB/s 0:00:00
Requirement already satisfied: matplotlib3.10.3 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 3)) (3.10.3)
Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib
3.10.3->-r requirements.txt (line 3)) (1.3.2)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib3.10.3->-r requirements.txt (line 3)) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib
3.10.3->-r requirements.txt (line 3)) (4.59.0)
Requirement already satisfied: kiwisolver>=1.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib3.10.3->-r requirements.txt (line 3)) (1.4.8)
Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib
3.10.3->-r requirements.txt (line 3)) (25.0)
Requirement already satisfied: pillow>=8 in /usr/local/lib/python3.10/dist-packages (from matplotlib3.10.3->-r requirements.txt (line 3)) (11.3.0)
Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib
3.10.3->-r requirements.txt (line 3)) (3.2.3)
Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.10/dist-packages (from matplotlib3.10.3->-r requirements.txt (line 3)) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.7->matplotlib
3.10.3->-r requirements.txt (line 3)) (1.14.0)
Installing collected packages: scipy
Attempting uninstall: scipy
Found existing installation: scipy 1.10.1
Can’t uninstall ‘scipy’. No files were found to uninstall.
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
rqsdk 1.6.5 requires scipy<=1.10.1,>=1.8.0; python_version >= “3.8” and python_version <= “3.11”, but you have scipy 1.11.4 which is incompatible.
Successfully installed scipy-1.11.4

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐