mac 安装Selenium Python

安装Selenium Python

使用如下命令安装

pip install selenium

mac 安装Selenium Python_第1张图片
错误信息:Permission denied

OSError: [Errno 13] Permission denied: ‘/usr/local/lib/python2.7/site-packages/selenium’

权限赋予:

sudo chmod -R 777 /usr/local/lib/python2.7/*

再次执行: Successfully installed selenium-3.141.0
在这里插入图片描述

参考:
[1] (https://python-selenium-zh.readthedocs.io/zh_CN/latest/1.安装/)
[2] (https://blog.csdn.net/sinat_33363493/article/details/52734746)

你可能感兴趣的:(2019)