1、生成requirement.txt
pipreqs ./ --encoding=utf8
2、离线下载
pip wheel -w package_tmp_dir -r requirements.txt
pip download -d package_tmp_dir -r requirements.txt
3、安装
pip install --no-index --find-links=package_tmp_dir -r requirements.txt
1、生成requirement.txt
pipreqs ./ --encoding=utf8
2、离线下载
pip wheel -w package_tmp_dir -r requirements.txt
pip download -d package_tmp_dir -r requirements.txt
3、安装
pip install --no-index --find-links=package_tmp_dir -r requirements.txt