来自:https://blog.csdn.net/weixin_42888180/article/details/133963348
Linux系统如何查看已安装的python包 -- 导出项目使用的依赖包
https://blog.csdn.net/qq_40671063/article/details/125864237
nnd,悲催的事情终于降临到我头上了
列出已安装的py包,备用
-->pip list
(base) admin@raspberrypi:~/Desktop $ pip list
Package Version
----------------------- -----------
anaconda-anon-usage 0.4.4
archspec 0.2.3
boltons 23.0.0
Brotli 1.0.9
certifi 2024.7.4
cffi 1.16.0
charset-normalizer 2.0.4
conda 24.5.0
conda-content-trust 0.2.0
conda-libmamba-solver 24.1.0
conda-package-handling 2.2.0
conda_package_streaming 0.9.0
contourpy 1.2.1
cryptography 42.0.5
cycler 0.12.1
distro 1.9.0
filelock 3.15.4
fonttools 4.53.1
frozendict 2.4.2
fsspec 2024.6.1
idna 3.7
Jinja2 3.1.4
jsonpatch 1.33
jsonpointer 2.1
kiwisolver 1.4.5
libmambapy 1.5.8
MarkupSafe 2.1.5
matplotlib 3.9.1
menuinst 2.0.2
mpmath 1.3.0
networkx 3.3
numpy 1.26.4
packaging 23.2
pillow 10.4.0
pip 24.0
platformdirs 3.10.0
pluggy 1.0.0
pycosat 0.6.6
pycparser 2.21
pyparsing 3.1.2
PySocks 1.7.1
python-dateutil 2.9.0.post0
requests 2.31.0
ruamel.yaml 0.17.21
scipy 1.13.1
setuptools 69.5.1
six 1.16.0
sympy 1.13.0
torch 2.3.1
tqdm 4.66.2
truststore 0.8.0
typing_extensions 4.12.2
urllib3 2.1.0
wheel 0.43.0
zstandard 0.22.0
(base) admin@raspberrypi:~/Desktop $
开始
接着来看看降级到3.11的python
(base) admin@raspberrypi:~/Desktop $ conda install python=3.11
Channels:
- defaults
Platform: linux-aarch64
Collecting package metadata (repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/admin/miniconda3
added / updated specs:
- python=3.11
The following packages will be downloaded:
package | build
---------------------------|-----------------
anaconda-anon-usage-0.4.4 |py311h7d20cce_100 28 KB
boltons-23.0.0 | py311hd43f75c_0 500 KB
brotli-python-1.0.9 | py311h419075a_8 364 KB
certifi-2024.7.4 | py311hd43f75c_0 159 KB
cffi-1.16.0 | py311h998d150_1 335 KB
conda-24.5.0 | py311hd43f75c_0 1.2 MB
conda-content-trust-0.2.0 | py311hd43f75c_1 62 KB
conda-package-handling-2.3.0| py311hd43f75c_0 281 KB
conda-package-streaming-0.10.0| py311hd43f75c_0 34 KB
cryptography-42.0.5 | py311h5077475_1 2.1 MB
distro-1.9.0 | py311hd43f75c_0 36 KB
frozendict-2.4.2 | py311hd43f75c_0 37 KB
idna-3.7 | py311hd43f75c_0 133 KB
jsonpatch-1.33 | py311hd43f75c_1 37 KB
libmambapy-1.5.8 | py311hd82f176_2 301 KB
menuinst-2.1.1 | py311hd43f75c_0 251 KB
numpy-1.26.4 | py311h82f920c_0 10 KB
numpy-base-1.26.4 | py311h592f769_0 7.4 MB
packaging-24.1 | py311hd43f75c_0 169 KB
pip-24.0 | py311hd43f75c_0 3.3 MB
platformdirs-3.10.0 | py311hd43f75c_0 38 KB
pluggy-1.0.0 | py311hd43f75c_1 34 KB
pybind11-abi-4 | hd3eb1b0_1 14 KB
pycosat-0.6.6 | py311h998d150_1 95 KB
pysocks-1.7.1 | py311hd43f75c_0 38 KB
python-3.11.9 | h4bb2201_0 15.5 MB
requests-2.32.2 | py311hd43f75c_0 125 KB
ruamel.yaml-0.17.21 | py311h998d150_0 263 KB
scipy-1.13.1 | py311h82f920c_0 24.5 MB
setuptools-69.5.1 | py311hd43f75c_0 1.3 MB
tqdm-4.66.4 | py311h2163289_0 163 KB
truststore-0.8.0 | py311hd43f75c_0 43 KB
urllib3-2.2.2 | py311hd43f75c_0 226 KB
wheel-0.43.0 | py311hd43f75c_0 146 KB
zstandard-0.22.0 | py311hc476304_0 422 KB
------------------------------------------------------------
Total: 59.7 MB
The following packages will be UPDATED:
conda-package-han~ 2.2.0-py312hd43f75c_1 --> 2.3.0-py311hd43f75c_0
conda-package-str~ 0.9.0-py312hd43f75c_0 --> 0.10.0-py311hd43f75c_0
menuinst 2.0.2-py312hd43f75c_1 --> 2.1.1-py311hd43f75c_0
packaging 23.2-py312hd43f75c_0 --> 24.1-py311hd43f75c_0
requests 2.31.0-py312hd43f75c_1 --> 2.32.2-py311hd43f75c_0
tqdm 4.66.2-py312h42ac6d5_0 --> 4.66.4-py311h2163289_0
urllib3 2.1.0-py312hd43f75c_1 --> 2.2.2-py311hd43f75c_0
The following packages will be DOWNGRADED:
anaconda-anon-usa~ 0.4.4-py312h7d20cce_100 --> 0.4.4-py311h7d20cce_100
boltons 23.0.0-py312hd43f75c_0 --> 23.0.0-py311hd43f75c_0
brotli-python 1.0.9-py312h419075a_8 --> 1.0.9-py311h419075a_8
certifi 2024.7.4-py312hd43f75c_0 --> 2024.7.4-py311hd43f75c_0
cffi 1.16.0-py312h998d150_1 --> 1.16.0-py311h998d150_1
conda 24.5.0-py312hd43f75c_0 --> 24.5.0-py311hd43f75c_0
conda-content-tru~ 0.2.0-py312hd43f75c_1 --> 0.2.0-py311hd43f75c_1
cryptography 42.0.5-py312h5077475_1 --> 42.0.5-py311h5077475_1
distro 1.9.0-py312hd43f75c_0 --> 1.9.0-py311hd43f75c_0
frozendict 2.4.2-py312hd43f75c_0 --> 2.4.2-py311hd43f75c_0
idna 3.7-py312hd43f75c_0 --> 3.7-py311hd43f75c_0
jsonpatch 1.33-py312hd43f75c_1 --> 1.33-py311hd43f75c_1
libmambapy 1.5.8-py312hd82f176_2 --> 1.5.8-py311hd82f176_2
numpy 1.26.4-py312hdb1dca2_0 --> 1.26.4-py311h82f920c_0
numpy-base 1.26.4-py312h6f96b8b_0 --> 1.26.4-py311h592f769_0
pip 24.0-py312hd43f75c_0 --> 24.0-py311hd43f75c_0
platformdirs 3.10.0-py312hd43f75c_0 --> 3.10.0-py311hd43f75c_0
pluggy 1.0.0-py312hd43f75c_1 --> 1.0.0-py311hd43f75c_1
pybind11-abi 5-hd3eb1b0_0 --> 4-hd3eb1b0_1
pycosat 0.6.6-py312h998d150_1 --> 0.6.6-py311h998d150_1
pysocks 1.7.1-py312hd43f75c_0 --> 1.7.1-py311hd43f75c_0
python 3.12.3-h8edadfe_1 --> 3.11.9-h4bb2201_0
ruamel.yaml 0.17.21-py312h998d150_0 --> 0.17.21-py311h998d150_0
scipy 1.13.1-py312hdb1dca2_0 --> 1.13.1-py311h82f920c_0
setuptools 69.5.1-py312hd43f75c_0 --> 69.5.1-py311hd43f75c_0
truststore 0.8.0-py312hd43f75c_0 --> 0.8.0-py311hd43f75c_0
wheel 0.43.0-py312hd43f75c_0 --> 0.43.0-py311hd43f75c_0
zstandard 0.22.0-py312hc476304_0 --> 0.22.0-py311hc476304_0
Proceed ([y]/n)?
开始坐牢了...
完成
再查看一遍
-->pip list
Downloading and Extracting Packages:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(base) admin@raspberrypi:~/Desktop $ pip list
Package Version
----------------------- --------
anaconda-anon-usage 0.4.4
archspec 0.2.3
boltons 23.0.0
Brotli 1.0.9
certifi 2024.7.4
cffi 1.16.0
charset-normalizer 2.0.4
conda 24.5.0
conda-content-trust 0.2.0
conda-libmamba-solver 24.1.0
conda-package-handling 2.3.0
conda_package_streaming 0.10.0
cryptography 42.0.5
distro 1.9.0
frozendict 2.4.2
idna 3.7
jsonpatch 1.33
jsonpointer 2.1
libmambapy 1.5.8
menuinst 2.1.1
numpy 1.26.4
packaging 24.1
pip 24.0
platformdirs 3.10.0
pluggy 1.0.0
pycosat 0.6.6
pycparser 2.21
PySocks 1.7.1
requests 2.32.2
ruamel.yaml 0.17.21
scipy 1.13.1
setuptools 69.5.1
tqdm 4.66.4
truststore 0.8.0
urllib3 2.2.2
wheel 0.43.0
zstandard 0.22.0
(base) admin@raspberrypi:~/Desktop $
啊咧,还多了好几个包