Python exports all library files and installations that the project depends on

Import and export of python project packages


1. Export

pip freeze > filename.txt 
# filename.txt 可随意命名
# 同时filename.txt 文件中可自定义编辑,也是能够进行包的批量安装。



2. Import (batch installation of packages)

pip install -r filename.txt


 

Guess you like

Origin blog.csdn.net/qq_39237205/article/details/124201674