断网环境下利用pip安装Python离线安装包
学习了:https://www.cnblogs.com/michael-xiang/p/5690746.html
自己下载安装文件的地方:
https://pypi.org/
pip install requests-2.19.1 需要 chardet-3.0.4, idna-2.7, urllib3-1.23, certifi-2018.4.16;
https://packaging.python.org/tutorials/installing-packages/
pip install ./downloads/SomeProject-1.0.4.tar.gz
pip install chardet-3.0.4.tar.gz pip install idna-2.7.tar.gz pip install urllib3-1.23.tar.gz pip install certifi-2018.4.16.tar.gz pip install requests-2.19.1.tar.gz
对于PyMySQL的安装需要如下安装包
pip install asn1crypto-0.24.0.tar.gz pip install six-1.11.0.tar.gz pip install pycparser-2.18.tar.gz # pip install cffi-1.11.5.tar.gz 需要安装c++环境 pip install cffi-1.11.5-cp36-cm36m-win32.whl # cp36指python3.6 # 此处可以在python脚本中执行 # >>> import pip; # >>> print(pip.pep425tags.get_supported()) # 进行本机python支持的环境查看 # pip install cryptography-2.3.tar.gz pip install cryptography-2.3-cp36-cp36m-win32.whl pip install PyMySQL-0.9.2.tar.gz
pip信息查询:https://blog.csdn.net/TH_NUM/article/details/77094966