install_python.sh #1

  • //
  • guest/
  • robert_cowham/
  • p4benchmark/
  • main/
  • ansible/
  • install_python.sh
  • View
  • Commits
  • Open Download .zip Download (628 B)
#!/bin/bash
# Install Python 3.6 plus all requirements for running locust
# Valid for CentOS/RHEL 7.*

# Compilers and related tools:
yum install yum-utils

yum groupinstall -y "development tools"

cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y epel-release-latest-7.noarch.rpm

yum install -y https://centos7.iuscommunity.org/ius-release.rpm
yum install -y python36u
yum install -y python36u-pip
yum install -y python36u-devel

# Now install python modules
pip3.6 install p4python
pip3.6 install pyaml
pip3.6 install numpy
pip3.6 install pyzmq
pip3.6 install locustio==0.8


# Change User Description Committed
#2 25529 Robert Cowham Latest copy of files including docker compose setup.
Merging
//guest/robert_cowham/p4benchmark/pb/...
to //guest/robert_cowham/p4benchmark/main/...
#1 24711 Robert Cowham Restructure and tidy up
//guest/robert_cowham/p4benchmark/main/install_python.sh
#2 24685 Robert Cowham Update to install python 3.6
#1 21757 Robert Cowham Add install script