安装:
1C:\Users\xiongjiawei>pip install selenium==2.48.02Collecting selenium==2.48.03Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/selenium/4Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/selenium/5Downloading selenium-2.48.0.tar.gz (805kB)6100% |████████████████████████████████| 806kB 37kB/s7Installing collected packages: selenium8Running setup.py installforselenium9Successfully installed selenium-2.48.01011C:\Users\xiongjiawei>
安装成功后在此路径查看:D:\Program Files\Python 3.5\Lib\site-packages
安装或升级:pip install -U selenium
卸载:
pip uninstall selenium
查看版本号:pip show selenium
浏览器驱动下载:http://www.seleniumhq.org/download/