Under windows10 python + selenium environment to build

1, Python install the
official website to download Python and installed, pay attention to choose to automatically add environment variables
to detect whether the installation was successful: Enter Python in a dos window, if the installation was successful displays version information, and enter the program edit mode
PS: the detection open dos window must be after installing reopened
2, installation Selenium
because it is more Python3.0 version installed, it automatically installed pip, pip install selenium directly here
enter pip install selenium in a dos window to
detect whether the installation was successful: pip Show selenium
PS: the detection open dos window must be after installation reopened
3, Google Chrome drive
browser version different and correspond to different driver versions, you can own Baidu
store address: installation path of python (similar to: C: \ Users \ Administrator \ AppData \ Local \ Programs \ Python \ Python38-32)

Guess you like

Origin www.cnblogs.com/woniuaoaoben/p/11711890.html