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:
- Open the Visual Studio Installer (accessible through Control Panel or Settings).
- Under "Installed" in the left menu, select the version of Visual Studio you have installed (e.g., Visual Studio 2015).
- Under "Programming Languages" in the right pane, expand "VC ".
- 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!
Statement: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