python3 + locust performance pressure sensing environmental structures

1. linux installation environment

Installation dependent components:

   (1) yum install -y gcc

   (2) yum -y install zlib*

   (3) yum install libffi-devel

 

2. Check the current python version

(1)  python --version

           

 

 

The current 2.7, we upgraded as newer version 3.7

 

(2) download archive python3.7.0

    wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz

(3) decompression python3

          tar -zxvf  Python-3.7.0.tgz

(4) Configuration compilation

        Just unzip into the directory (./configure --prefix = / usr / local / python3 --with-ssl)

(5) to compile and install

       make && make install

(6) to create a soft link

      ln -s / usr / local / python3 / bin / python3 / usr / bin / python3 (here I remember the installation directory to / usr / local / python3 / bin / python3)

      ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

(7) View the current version

     python3 --version

     

 

 

(8) Upgrade pip

      pip3 install --upgrade pip

(9) mounted locust

       pip3 install --default-timeout=1000 locustio

(10) to create a soft link

       ln -s /usr/local/python3/bin/locust /usr/bin/locust

(11) View locust installation was successful

      locust --help

 

 

    

Guess you like

Origin www.cnblogs.com/fengqu/p/12156651.html