离线安装python包
1.制作requirement.txt
pip freeze > requirements.txt
2.离线下载安装包
#下载单个离线包 pip download -d your_offline_packages <package_name> #批量下载离线包 pip3 download -d /home/admin/packges/python_other -r requirements.txt
3.离线安装
# 安装单个离线包 pip install --no-index --find-links=/your_offline_packages/ package_name # 批量安装离线包 pip install --no-index --find-links=/your_offline_packages/ -r requirements.txt
4.离线包的3种形式:https://blog.csdn.net/Cc_Sonia/article/details/122143359