1、资源下载

https://codeload.github.com/psf/requests/zip/master

https://www.python.org/

https://files.pythonhosted.org/packages/41/b6/4f0cefba47656583217acd6cd797bc2db1fede0d53090fdc28ad2c8e0716/certifi-2018.10.15.tar.gz

https://files.pythonhosted.org/packages/a5/74/05ffd00b4b5c08306939c485869f5dc40cbc27357195b0a98b18e4c48893/urllib3-1.24.tar.gz

https://files.pythonhosted.org/packages/65/c4/80f97e9c9628f3cac9b98bfca0402ede54e0563b56482e3e6e45c43c4935/idna-2.7.tar.gz

https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz

2、说明

系统:
CentOS Linux release 7.4.1708

系统已经安装了python3替代了自带的python2

使用应用requests库的账户登录系统

3、编译安装

安装依赖库

tar -zxf certifi-2018.10.15.tar.gz
cd certifi-2018.10.15/
python setup.py install
tar -zxf urllib3-1.24.tar.gz
cd urllib3-1.24/
python setup.py install
tar -zxf idna-2.7.tar.gz
cd idna-2.7/
python setup.py install
tar -zxf chardet-3.0.4.tar.gz
cd chardet-3.0.4/
python setup.py install

安装requests库

unzip requests-master.zip
cd requests-master/
python setup.py install

查看库

$ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
certifi (2018.10.15)
chardet (3.0.4)
idna (2.7)
pip (9.0.1)
psycopg2-binary (2.8.3)
requests (2.22.0)
setuptools (28.8.0)
tornado (6.0.2)
urllib3 (1.24)

最新文章

  1. .NET平台开源项目速览(16)C#写PDF文件类库PDF File Writer介绍
  2. Framework manager编写SQL错误整理
  3. java 基本类型之间的转换
  4. Scrapy学习教程
  5. jquery easyui datebox单击文本框显示日期选择
  6. (四)学习CSS之position、bottom、left、right和top属性
  7. 【转】你应该知道的十个VirtualBox技巧与高级特性
  8. background-attachment:fixed应用
  9. 用Java实现非阻塞通信
  10. 在Blade中结合gperftools检查内存泄露
  11. PendingIntent Bundle null解决方案
  12. poj2032Square Carpets(IDA* + dancing links)
  13. 3505: [Cqoi2014]数三角形
  14. faster-rcnn中ROI_POOIING层的解读
  15. springmvc启动问题
  16. disk2vhd-----将windows系统转换成虚拟镜像格式
  17. 基于struts2的ajaxfileupload异步上传插件的使用
  18. (转)Python 3 collections.defaultdict() 与 dict的使用和区别
  19. Linux下rz,sz与ssh的配合使用,实现文件传输
  20. Hadoop(12)-MapReduce框架原理-Hadoop序列化和源码追踪

热门文章

  1. ionic3.0 alipay-base插件移除后会添加多余的链接文件在nodes-modules中,导致再安装其他插件或移除插件时报错问题
  2. redis 发布订阅(pub/sub )
  3. dubbo-源码阅读之Filter实现原理
  4. JAVA二分插入排序
  5. Java中如何实现序列化,有什么意义?
  6. Robot Framework:环境安装
  7. cf期望概率专题
  8. 原生js 与 jQuery对比
  9. eclipse git项目的冲突文件处理
  10. 多图上传控制器及模型代码(2)thinkphp5+layui实现多图上传保存到数据库,可以实现图片自由排序,自由删除。