mac M1芯片python selenium自动化环境配置

mac M1芯片python selenium自动化环境配置,第1张

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

4、尝试使用pycharm安装

Mac 系统下安装 PyCharm 的实践_BruceHelloWorld的博客-CSDN博客_mac安装pycharm

5、使用pycharm安装selenium库

selenium(1): Mac下安装和配置selenium_-九斤-的博客-CSDN博客_mac安装selenium

常见问题:

(1)  谷歌驱动版本下载

​​​​​​CNPM Binaries Mirror

(2)无法打开“chromedriver”,因为Apple无法检查其是否包含恶意软件(找到chromedriver的目录)

 解决:关于selenium webdriver 错误:“chromedriver”无法打开,因为无法验证开发人员。无法启动chrome浏览器_渴望力量的哈士奇的博客-CSDN博客_webdriver用不了​​​​​​​​​​​​​​

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/869195.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-13
下一篇2022-05-13

发表评论

登录后才能评论

评论列表(0条)

    保存