centos7 under python2 environment installation pip2, kazoo, bottle, beaker

Excerpt: https: //mp.weixin.qq.com/s src = 11 & timestamp = 1576355125 & ver = 2034 & signature = mNp2na6VjFzT9n3FiDC0ICOWiHP4UJnqa1oTvkwEzuc7LPHYEyveSSBfQOq9 * kM7vFjS4xB7QNtHYAev9CgCtGC2U0tkVNf0L6hwTGFjhleUT3CkPqu61mlqP-GTdr * 4 & new = 1?

A lower mounting pip2 centos7 comes to python2.7

centos7 default python2.7 installed already, but there is no pre-pip command, so also need to install their own pip order, easy to install various packages python used.

1, first check not installed python-pip, can be executed directly command yum install python-pip
      If suggested as follows:
      No Package Python-PIP Available.
      Error: Nothing to do
      or prompts: Can not find a valid baseurl for repo: base / 7 / x86_64
      Description not find the installation package, 2 commands need to be performed.

2, performs yum -y install epel-release,
      successfully performed after epel yum install python-pip pip can be installed properly

Two, kazoo installation

A zookeeper python module written in python.

Installation command:

pip install kazoo

Three, python micro web bottle mounting frame
installation command:

pip install bottle

Fourth, the installation beaker

Installation command:

pip install beaker

Guess you like

Origin www.cnblogs.com/LiuYanYGZ/p/12041792.html