美文网首页
CentOS7安装chrome和chromedriver

CentOS7安装chrome和chromedriver

作者: 王国的荣耀 | 来源:发表于2023-03-19 11:40 被阅读0次

pyton 3.8.5 编译

./configure --prefix=/usr/local/python3
./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl

linux设置pip镜像源

创建.pip目录

mkdir ~/.pip
cd ~/.pip

创建pip.conf文件

touch pip.conf

编辑该文件

vim pip.conf

设置阿里源

[global]
trusted-host = mirrors.aliyun.com
index-url = https://mirrors.aliyun.com/pypi/simple

sz、rz install

yum -y install lrzsz

安装依赖

yum install liberation-fonts -y
yum install vulkan -y
yum -y install redhat-lsb*
yum -y install libXss*
yum -y install libappindicator*
yum -y install libgbm

下载google-chrome RPM

wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

安装google-chrome

rpm -ivh google-chrome-stable_current_x86_64.rpm

查看google-chrome版本

google-chrome --version

mac chromedrive install

  1. pip install selenium
  2. http://chromedriver.storage.googleapis.com/index.html 选择合适的版本进行安装。
  3. 安装目录:/usr/local/bin

相关文章

网友评论

      本文标题:CentOS7安装chrome和chromedriver

      本文链接:https://www.haomeiwen.com/subject/qfqyrdtx.html