python3离线安装requests库
到可以访问公网的机器上
pip3 install requests
下载所依赖的whl文件,同步到不能上公网的机器
按照顺序安装
pip3 install urllib3-1.25.9-py2.py3-none-any.whl
pip3 install chardet-3.0.4-py2.py3-none-any.whl
pip3 install certifi-2020.4.5.2-py2.py3-none-any.whl
pip3 install idna-2.9-py2.py3-none-any.whl
pip3 install urllib3-1.25.9-py2.py3-none-any.whl
pip3 install requests-2.24.0-py2.py3-none-any.whl
来源:oschina
链接:https://my.oschina.net/longquan/blog/4316556