Selenium+python Automation 84-python3.6 with Pyuserinput

Source: Internet
Author: User

Objective
Python2 on the installation of SendKeys library, for the elements of the bad positioning, with the shortcut key operation is excellent, then on the 3.6 installation, will error

First, python3.6 installation SendKeys error

1.python3.6 installation SendKeys is not installed, will be error

> Pip Install SendKeys

Two, 32-bit python3.6 installation Pyuserinput

1.python3.6 is divided into 2 versions, one is 32-bit python3.6 and the other is a 64-bit python3.6.

-If your computer is 32-bit, install python3.6 32-bit version, directly with PIP installation is no problem

-If your computer is 64-bit, install python3.6 32-bit version, it is no problem

> Pip Install pyuserinput

Three, 64-bit python3.6 installation Pyuserinput

1. If your computer is 64-bit, install python3.6 64-bit version, then the problem comes.


2. Error: No matching distribution found for Pyhook (from Pyuserinput)

Iv. installation of Pyhook

1.pyhook:[https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml] (https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml)

After local, install with PIP
> Pip Install pyhook Local Path

After installing Pyhook, continue to install Pyuserinput time, will error: No matching distribution found for Pywin32 (from Pyuserinput)


Wu, Pywin32

1.pywin32:[https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml] (https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml)


2. After downloading to the local, install
> Pip Install pywin32 Local Path


Six, import pymouse error

1. Environment installation is over, you think it's okay, that's too young, then directly after the import module, error: Importerror:dll load failed: The specified module could not be found.

2. Problem reason: pywin32-221 version is too high, switch to pywin32-220

pywin32-220:https://sourceforge.net/projects/pywin32/files/pywin32/build%20220/

3. Workaround: First uninstall Pywin32:pip uninstall Pywin32

Reinstall the PYWIN32-220 version, then run it again OK

Selenium+python Automation 84-python3.6 with Pyuserinput

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.