//搜索python项目包
https://pypi.org/project/
//在有网环境准备好get-pip.py, 到pypi网站上搜索并下载wheel, setuptools, pip的wheel文件然后到离线环境通过--find-links安装pip
wget https://bootstrap.pypa.io/get-pip.py
wget https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl
wget https://files.pythonhosted.org/packages/d1/6a/4b2fcefd2ea0868810e92d519dacac1ddc64a2e53ba9e3422c3b62b378a6/setuptools-40.8.0-py2.py3-none-any.whl
wget https://files.pythonhosted.org/packages/96/ba/a4702cbb6a3a485239fbe9525443446203f00771af9ac000fa3ef2788201/wheel-0.33.1-py2.py3-none-any.whl
python get-pip.py --no-index --find-links=./
//build和安装whl
python setup.py bdist_wheel
pip install dist/xxx.whl
//查看已安装的包和版本,将txt中所列的包build为wheel文件并存入wheelhouse目录
pip freeze > requirements.txt
pip wheel --trusted-host pypi.douban.com -i http://pypi.douban.com/simple -r requirements.txt -w wheelhouse
//下载所列