旧电脑中:  命令行运行    pip freeze> requirements.txt   一般会生成在C:\Users\用户  这个路径中

把运行好的requirements.txt文件拷贝到新电脑中

然后新电脑中命令行运行代码  pip install -r 路径\requirements.txt   例如 pip install -r D:\python111\requirements.txt  

然后就会根据 requirements.txt中的包的标准号自动安装。

 

 requirements.txt 文件,用于记录所有依赖包及其精确的版本号。以便新环境部署。

altgraph==0.16.1
asgiref==3.2.3
atomicwrites==1.3.0
attrs==19.3.0
beautifulsoup4==4.8.1
certifi==2019.11.28
cffi==1.13.2
chardet==3.0.4
colorama==0.4.3
cryptography==2.8
cycler==0.10.0
Django==3.0.2
easygui==0.98.1
entrypoints==0.3
et-xmlfile==1.0.1
flake8==3.7.9
flake8-polyfill==1.0.2
flake8-quotes==2.1.1
future==0.18.2
idna==2.8
imbalanced-learn==0.6.1
importlib-metadata==1.3.0
jdcal==1.4.1
joblib==0.14.1
kiwisolver==1.1.0
lxml==4.4.1
matplotlib==3.1.1
mccabe==0.6.1
mkl-service==2.3.0
more-itertools==8.0.2
numpy==1.17.3
olefile==0.46
openpyxl==3.0.3
packaging==19.2
pandas==0.25.2
pefile==2019.4.18
pep8-naming==0.9.1
Pillow==6.2.1
pluggy==0.13.0
py==1.8.1
pycodestyle==2.5.0
pycparser==2.19
pyflakes==2.1.1
PyInstaller==3.5
PyMySQL==0.9.3
pyOpenSSL==19.0.0
pyparsing==2.4.2
PyQt5==5.12.3
PyQt5-sip==4.19.18
PyQtWebEngine==5.12.1
PySocks==1.7.1
pytesseract==0.3.1
pytest==5.3.2
python-dateutil==2.8.0
pytz==2019.3
pywin32-ctypes==0.2.0
requests==2.22.0
scikit-learn==0.22.1
scipy==1.3.1
six==1.12.0
soupsieve==1.9.4
sqlparse==0.3.0
tesserocr==2.5.0
tornado==6.0.3
urllib3==1.25.7
wcwidth==0.1.7
win-inet-pton==1.1.0
wincertstore==0.2
xlrd==1.2.0
XlsxWriter==1.2.7
zipp==0.6.0
 

 

更多推荐