Install lxml error error:unable to find Vcvarsall.bat under Windows

Source: Internet
Author: User

Just started the installation, I was using the command pip install lxml directly to install, but the error

Error:unable to find Vcvarsall.bat

Solution:

1. First install WHEEL,PIP installed wheel

2. Download the corresponding. whl file here, http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

3. Enter the folder where the. WHL is located, execute the command to complete the installation: Pip install full file name with suffix

I downloaded: LXML-4.2.1-CP34-CP34M-WIN32.WHL

4. Install with PIP install LXML-4.2.1-CP34-CP34M-WIN32.WHL, if successful, perfect (5 will not see),

However, the error is still reported, and the following errors are quoted:

5. Change the file downloaded above to: LXML-4.2.1-CP34-NONE-WIN32.WHL (compared to: LXML-4.2.1-CP34-CP34M-WIN32.WHL)

Only need to modify cp34m to none and then install

hahaha, it worked.

Enter the Python shell test

Perfect!!!

Install lxml error error:unable to find Vcvarsall.bat under Windows

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.