1.制作requirement.txt
pip freeze > requirement.txt
2.下载离线Pytho安装包
pip download -r requirement.txt -d offline_package
3.安装离线安装包
pip install --no-index --find-links=./offline_package -r requirement.txt
4.获取安装平台关键信息
-
import pip
-
print(pip.pep425tags.get_supported()
5.组装下载包安装信息
python3 -m pip download -r requirements.txt --implementation cp --abi cp34m --platform linux_armv7l --python-version 34 -d offlinepackage --no-deps -i https://www.piwheels.org/simple