1、旧电脑查找当前python 插件
C:\Users>pip list
WARNING: Ignoring invalid distribution -ip (e:\python37\lib\site-packages)
Package Version
annotated-types 0.5.0
antlib 1.1b1
anyio 3.7.1
appdirs 1.4.4
astroid 2.15.8
base58 2.1.1
base91 1.0.1
certifi 2023.7.22
cffi 1.15.1
charset-normalizer 3.2.0
ciphey 5.14.0
cipheycore 0.3.2
cipheydists 0.3.35
click 7.1.2
colorama 0.4.5
commonmark 0.9.1
comtypes 1.2.0
crcmod 1.7
cryptography 38.0.1
dill 0.3.7
distro 1.8.0
docx2pdf 0.1.8
ecdsa 0.18.0
exceptiongroup 1.2.0
fire 0.5.0
flake8 3.9.2
fonttools 4.38.0
h11 0.14.0
httpcore 0.17.3
httpx 0.24.1
idna 3.4
importlib-metadata 5.0.0
intelhex 2.3.0
isort 5.11.5
langdetect 1.0.9
lazy-object-proxy 1.9.0
libusb1 1.9.3
loguru 0.5.3
lxml 4.9.1
mccabe 0.6.1
mock 4.0.3
mypy-extensions 1.0.0
name-that-hash 1.10.0
nrfutil 6.1.7
numpy 1.21.6
openai 1.5.0
opencv-python 4.7.0.72
pc-ble-driver-py 0.17.0
pdf2docx 0.5.6
piccata 2.0.1
pip 23.3.1
platformdirs 4.0.0
protobuf 3.20.3
pybase62 0.4.3
pycodestyle 2.7.0
pycparser 2.21
pydantic 2.5.2
pydantic_core 2.14.5
pyflakes 2.3.1
Pygments 2.17.2
pylint 2.17.7
PyMuPDF 1.21.1
pypiwin32 223
PyQt5 5.15.4
pyqt5-plugins 5.15.4.2.2
PyQt5-Qt5 5.15.2
PyQt5-sip 12.11.0
pyqt5-tools 5.15.4.3.2
pyserial 3.5
pyspinel 1.0.3
python-docx 0.8.11
python-dotenv 0.21.0
pywhat 1.1.0
pywin32 303
PyYAML 5.4.1
qt5-applications 5.15.2.2.2
qt5-tools 5.15.2.1.2
requests 2.31.0
rich 10.16.2
setuptools 41.2.0
six 1.16.0
sniffio 1.3.0
termcolor 2.2.0
tomli 2.0.1
tomlkit 0.12.3
tqdm 4.64.1
typed-ast 1.5.5
typing_extensions 4.7.1
typing-inspect 0.6.0
urllib3 2.0.4
win32-setctime 1.1.0
wrapt 1.14.1
zipp 3.9.0
[notice] A new release of pip is available: 23.3.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip
C:\Users>
2、新电脑使用AI工具生成插件安装命令 你提供的这些包已经安装过了,如果你想要重新安装这些指定版本的包,可以使用以下指令。不过需要注意,一次性安装这么多包可能会因为网络、依赖冲突等问题导致部分安装失败。
pip install annotated-types0.5.0 antlib1.1b1 anyio3.7.1 appdirs1.4.4 astroid2.15.8 base582.1.1 base911.0.1 certifi2023.7.22 cffi1.15.1 charset-normalizer3.2.0 ciphey5.14.0 cipheycore0.3.2 cipheydists0.3.35 click7.1.2 colorama0.4.5 commonmark0.9.1 comtypes1.2.0 crcmod1.7 cryptography38.0.1 dill0.3.7 distro1.8.0 docx2pdf0.1.8 ecdsa0.18.0 exceptiongroup1.2.0 fire0.5.0 flake83.9.2 fonttools4.38.0 h110.14.0 httpcore0.17.3 httpx0.24.1 idna3.4 importlib-metadata5.0.0 intelhex2.3.0 isort5.11.5 langdetect1.0.9 lazy-object-proxy1.9.0 libusb11.9.3 loguru0.5.3 lxml4.9.1 mccabe0.6.1 mock4.0.3 mypy-extensions1.0.0 name-that-hash1.10.0 nrfutil6.1.7 numpy1.21.6 openai1.5.0 opencv-python4.7.0.72 pc-ble-driver-py0.17.0 pdf2docx0.5.6 piccata2.0.1 pip23.3.1 platformdirs4.0.0 protobuf3.20.3 pybase620.4.3 pycodestyle2.7.0 pycparser2.21 pydantic2.5.2 pydantic_core2.14.5 pyflakes2.3.1 Pygments2.17.2 pylint2.17.7 PyMuPDF1.21.1 pypiwin32223 PyQt55.15.4 pyqt5-plugins5.15.4.2.2 PyQt5-Qt55.15.2 PyQt5-sip12.11.0 pyqt5-tools5.15.4.3.2 pyserial3.5 pyspinel1.0.3 python-docx0.8.11 python-dotenv0.21.0 pywhat1.1.0 pywin32303 PyYAML5.4.1 qt5-applications5.15.2.2.2 qt5-tools5.15.2.1.2 requests2.31.0 rich10.16.2 setuptools41.2.0 six1.16.0 sniffio1.3.0 termcolor2.2.0 tomli2.0.1 tomlkit0.12.3 tqdm4.64.1 typed-ast1.5.5 typing_extensions4.7.1 typing-inspect0.6.0 urllib32.0.4 win32-setctime1.1.0 wrapt1.14.1 zipp==3.9.0
如果你是想要更新这些包到最新版本,可以使用以下指令:
pip install --upgrade annotated-types antlib anyio appdirs astroid base58 base91 certifi cffi charset-normalizer ciphey cipheycore cipheydists click colorama commonmark comtypes crcmod cryptography dill distro docx2pdf ecdsa exceptiongroup fire flake8 fonttools h11 httpcore httpx idna importlib-metadata intelhex isort langdetect lazy-object-proxy libusb1 loguru lxml mccabe mock mypy-extensions name-that-hash nrfutil numpy openai opencv-python pc-ble-driver-py pdf2docx piccata pip platformdirs protobuf pybase62 pycodestyle pycparser pydantic pydantic_core pyflakes Pygments pylint PyMuPDF pypiwin32 PyQt5 pyqt5-plugins PyQt5-Qt5 PyQt5-sip pyqt5-tools pyserial pyspinel python-docx python-dotenv pywhat pywin32 PyYAML qt5-applications qt5-tools requests rich setuptools six sniffio termcolor tomli tomlkit tqdm typed-ast typing_extensions typing-inspect urllib3 win32-setctime wrapt zipp