如何搭建Python3.4+Selenium

如题所述

详细步骤:
1.下载32位的python3.4 ,安装,注意在安装过程中,选择pip

2.添加系统环境变量

C:\Python34;C:\Python34\Scripts;C:\Program Files\Google\Chrome\Application(后面会用到)

3.使用pip命令,安装selenium
cd Python34
然后输入: pip install -U selenium
安装成功后,显示:
Runing setup.py install foe selenium
Successfully installed selenium-2.48.0

4.检测selenium是否安装成功。

在Python的IDLE中,输入:

from selenium import webdriver

如果没有报错,则selenium安装成功。
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答
大家正在搜