(E) Python2.7 / 3. * + Selenium3 automated test environment to build

About the difference python version 2.7 or 3.7 of the class is not great

2.7 Stop Maintenance Update 2020

 

Do a little test, how performance will be enough light it? , We have a good line and line and the code

Step by step we started to take the environment: (Windows)

① First will use jdk, usually jdk1.8 it, click on the installation, the default location in the C: \ Program Files \ Java

Configuration environment variable, own Baidu, very simple

② in Python official website to download Python2.7

Official website: https://www.Python.org/

Once you have downloaded, double-click on it to install, the default location C: \ Python27

After installation, add in the environment variable Path:; C: \ Python27

③ install setuptools

Download the official website: https://pypi.python.org/pypi/setuptools

Find setup.py file folder

Open cmd: cd enter the directory

setup.py install

④ installation pip

There pip directory in Python folder: C: \ Python27 \ Scripts (back to the root directory command cd \)

Input: python pip.exe

⑤ install selenium

pip install selenium

Here it prompts me pip version is too low. According to his update python -m pip install --upgrade pip

(Update and do not update will not affect)

Guess you like

Origin www.cnblogs.com/wx921308494/p/11966626.html