Python+selenium (1)--Environment construction

Source: Internet
Author: User

Do automation also a long time, this period of time the project early on nothing to do in the review before the seleniu+python of knowledge, now want to do a simple record, but also for their own learning has a driving effect bar.

Above.

First, Python:

https://www.python.org/

There is not much comment on the choice of Python version, but it is recommended that you use the 3.x version.

Follow the instructions in the picture to download the installation package and your own operating system, and do not repeat the download process too much.

When the installation is complete, open My Computer and right-click Properties

Click Environment variables to open the environment variable configuration interface.

Drop-down to find path and select, click the Edit button to edit

Fill in path with the following paths (my Python installation path is C:\Python36, as modified by my own installation directory.) )

c:\python36;c:\python36\scripts;

Open a command prompt, enter Python, and the installation succeeds as shown below:

Reopen the command prompt and enter:

python-m pip Install--upgrade pip

Download the corresponding PIP package

Re-enter:

Pip Install Selenium

Download and install the corresponding selenium package for installation.

When the installation is complete, enter:

Pip Show Selenium

View Selenium corresponding version

Well, here selenium and Python are all installed, and the next section tells you how to download the corresponding browser driver.

Python+selenium (1)--Environment construction

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.