1、安装Homebrew(注意需要外网)
Homebrew是mac下软件管理工具,下载软件很多需要他
Mac安装Homebrew 详细教程_yy61658720的博客-CSDN博客_mac 安装homebrew
2、brew install python3(注意需要外网)
Mac下用homebrew安装python_非风日方的的博客-CSDN博客_homebrew安装python
3.安装selenium的库,用pip3(当存在两个python版本的时候使用pip3区分安装哪个python的库)
最终使用pip3 install selenium时发现老是报:DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621