Selenium+python Automated 85-python3.6 on SendKeys error with pyuserinput replacement

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

python3.6 Installation SendKeys Error

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

Pip Install SendKeys

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, it is no problem to install python3.6 32-bit version.

Pip Install Pyuserinput

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)

Pyhook Installation

1.pyhook:https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

2. After downloading to local, install with PIP

Local path to pip install Pyhook

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

Pywin32

1.pywin32:https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

2. After downloading to the local, install

Local path to pip install Pywin32

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. First uninstall Pywin32:pip uninstall Pywin32

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

Selenium+python Automated 85-python3.6 on SendKeys error with pyuserinput replacement

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.