yum -y groupinstall "Development tools"
wget https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tar.xz
mkdir /usr/local/python3
tar -xvJf Python-3.8.9.tar.xz
cd Python-3.8.9
./configure --prefix=/usr/local/python3
yum install libffi-devel -y
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
make && make install
yum -y install python3-pip
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
pip3 install mitmproxy -i https://pypi.tuna.tsinghua.edu.cn/simple/
kill -9 $(ps -ef | grep 9999 | grep python | grep -v grep | awk '{print $2}')
sudo yum install libxml2-devel libxslt-devel -y
sudo pip3 install lxml -i https://pypi.tuna.tsinghua.edu.cn/simple/
sudo pip3 install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/
sudo pip3 install mysql-connector -i https://pypi.tuna.tsinghua.edu.cn/simple/
mv chromedriver /usr/bin
vim /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
yum -y install google-chrome-stable
google-chrome -version
timedatectl set-timezone Asia/Shanghai
yum -y install epel-release
yum -y install wget imlib2
pip3 install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip3 install pyautogui -i https://pypi.tuna.tsinghua.edu.cn/simple/
yum -y install python3-tkinter