Why Can\'t I Install lxml Without Microsoft Visual C 14.0?

Patricia Arquette
Release: 2024-11-26 12:27:11
Original
567 people have browsed it

Why Can't I Install lxml Without Microsoft Visual C   14.0?

Installing LXML with Microsoft Visual C 14.0

When attempting to install lxml through pip, some users encounter an error indicating that Microsoft Visual C 14.0 is required. This article provides guidance on resolving this issue.

Resolving the Error

Despite having a working copy of VS 2015 installed, if Visual Studio 2015 does not include the C compiler, this error can occur. To verify and resolve the issue:

  1. Open the Visual Studio Installer (accessible through Control Panel or Settings).
  2. Under "Installed" in the left menu, select the version of Visual Studio you have installed (e.g., Visual Studio 2015).
  3. Under "Programming Languages" in the right pane, expand "VC ".
  4. Ensure that the "VC Build Tools" checkbox is selected.

Additional Considerations

  • The path to VC Build Tools should be set: VS140COMNTOOLS=C:Program Files (x86)Microsoft Visual Studio 14.0Common7Tools.
  • If the precompiled binary for lxml is installed instead, it may still be beneficial to resolve the underlying issue to facilitate future installations.

The above is the detailed content of Why Can\'t I Install lxml Without Microsoft Visual C 14.0?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template