PreparePythonenvironmentandinstallselenium.

王朝学院·作者佚名  2016-08-27
窄屏简体版  字體: 小  |  中  |  大  |  超大  

1, Install python and selenium.

I use python 3.5, the following is the example

1.) Python download: 3.5

https://www.python.org/downloads/release/python-350/

At the end of the web site paper, Select: Windows x86 executable installer

2.) After we install python, we should configure the environment variable.

Go to: Computer->PRoperties->Advanced system settings->Advanced --Environment Variables...-> System variables...Path->Edit

C:\ProgramData\Oracle\java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\; C:\Program Files (x86)\Microsoftasp.net\ASP.NET Web Pages\v1.0\; C:\Users\t_chenme\AppData\Local\Programs\Python\Python35-32\; C:\Users\t_chenme\AppData\Local\Programs\Python\Python35-32\Scripts

2. Setuptools to install:

I use setuptools-18.4-py2.py3-none-any.whl (md5), it is for python 3.5

I download from https://pypi.python.org/pypi/setuptools

In cmd, go to the path, and execute:

python ez_setup.py

3. Setup selenium:

in command type in :pip install selenium

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝網路 版權所有 導航