Python包管理

====================================================================================
python ------ rpm
pip ------ yum

安装setuptools

[root@localhost ~]# yum -y install git
[root@localhost ~]# git clone https://github.com/pypa/setuptools.git
[root@localhost ~]# cd setuptools
[root@localhost ~]# python setup.py install

实时解析nginx 访问日志ngxtop

1. 源码安装
[root@localhost ~]# wget https://github.com/lebinh/ngxtop/archive/master.zip -O ngxtop-master.zip
[root@localhost ~]# unzip ngxtop-master.zip
[root@localhost ~]# cd ngxtop-master
[root@localhost ~]# python setup.py install

2. nginx 基本示例
[root@localhost ~]# ngxtop -c /usr/local/nginx/conf/nginx.conf //实时状态
[root@localhost ~]# ngxtop -c /usr/local/nginx/conf/nginx.conf top remote_addr //top 10

安装pip软件包

[root@localhost ~]# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate
[root@localhost ~]# tar -xzvf pip-1.5.4.tar.gz
[root@localhost ~]# cd pip-1.5.4
[root@localhost ~]# python setup.py install

使用pip安装软件包

1. 安装软件包
[root@localhost ~]# pip install SomePackage

2. 检查哪些包需要更新
[root@localhost ~]# pip list --outdated

3. 升级软件包
[root@localhost ~]# pip install --upgrade SomePackage

4. 卸载软件包
[root@localhost ~]# pip uninstall SomePackage

pip 安装redis 实战案例

[root@localhost ~]# pip install redis

最新文章

  1. 应用代理 socket TCP协议 的资料
  2. NPOI简介
  3. sphinx 增量索引 实现近实时更新
  4. SQL 复制订阅 异常后 强制删除
  5. linux eclipse c++配置
  6. ROS使用rqt_console
  7. 【ThinkingInC++】61、非成员运算符
  8. Build MySQL 5.7.4 in RedHat
  9. 分布式架构实战--ActiveMQ的安装与使用(单节点)
  10. 高性能网络编程(1)—accept建立连接‍(转载,作者:陶辉)
  11. Delphi中Chrome Chromium、Cef3学习笔记(六)
  12. python之路--subprocess,粘包现象与解决办法,缓冲区
  13. Android 面试问答
  14. Docker镜像优化
  15. Linux学习14-ab报错apr_pollset_poll: The timeout specified has expired (70007)
  16. golang kafka client
  17. Mac下MySQL卸载方法
  18. Mockplus微信小程序上线!扫一扫轻松查看原型!
  19. LeetCode题解之Rotate Array
  20. Cocos2d-X中的ZORDER和Tag

热门文章

  1. Qt QComBox 文本框输入itemText && 文本框查找item && 本文框添加Item &&设置显示Item数量
  2. Python笔记之数据类型
  3. nodejs笔记之流(stream)
  4. String<-->int
  5. C/C++中数据的存储
  6. Windows 安装配置MongoDB
  7. MySQL5.7 并行复制的学习
  8. 使用 Nginx 内置 $http_user_agent 来区分( 电脑 pc、手机 mobile、平板 pad )端的内容访问
  9. 本学期C#学习个人总结
  10. MemoryStream请求与接收