• 安装谷歌和python3脚本


     1 #!/bin/bash
     2 #安装chrome
     3 cat >> /etc/yum.repos.d/google-chrome.repo <<EOF
     4 [google-chrome]
     5 name=google-chrome
     6 baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
     7 enabled=1
     8 gpgcheck=1
     9 gpgkey=https://dl.google.com/linux/linux_signing_key.pub
    10 EOF
    11 yum -y install google-chrome-stable --nogpgcheck
    12 cd /opt
    13 wget https://npm.taobao.org/mirrors/chromedriver/87.0.4280.20/chromedriver_linux64.zip
    14 unzip chromedriver_linux64.zip
    15 mv chromedriver /usr/bin/
    16 chmod +x /usr/bin/chromedriver
    17 
    18 #安装python3
    19 yum -y groupinstall "Development tools"
    20 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
    21 yum install -y libffi-devel zlib1g-dev
    22 yum install zlib* -y
    23 cd /opt
    24 #wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
    25 tar -xf Python-3.7.2.tar.xz
    26 mkdir /usr/local/python3 
    27 cd /opt/Python-3.7.2
    28 ./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl 
    29 make -j4 && make install
    30 echo "export PATH=$PATH:/usr/local/python3/bin" >> /etc/profile
    31 echo "export PYTHON_APP_ENV=test" >> /etc/profile
    32 source /etc/profile
    33 pip3 install -i https://pypi.douban.com/simple/ --default-timeout=100 wheel numpy selenium pillow  cmake requests redis python-dateutil
  • 相关阅读:
    Codeforces 723d [暴力dfs]
    Codeforces 723e [图论][欧拉回路]
    Hihocoder 1035 [树形dp]
    Codeforces 721C [dp][拓扑排序]
    Codeforces 721D [贪心]
    info
    关于string操作
    Floyd求最小环 HDU1599
    Codeforces Round #572 (Div. 2) B Number Circle
    A. XXXXX
  • 原文地址:https://www.cnblogs.com/fixedstar/p/14005608.html
Copyright © 2020-2023  润新知