Home >Backend Development >Python Tutorial >How Do I Fix the \'Microsoft Visual C 14.0 is Required\' Error During Pip Installation?

How Do I Fix the \'Microsoft Visual C 14.0 is Required\' Error During Pip Installation?

Susan Sarandon
Susan SarandonOriginal
2024-11-29 05:40:09976browse

How Do I Fix the

Troubleshooting "Microsoft Visual C 14.0 is Required" Error during Pip Installation

When attempting to install the lxml package via pip, Windows 10 users upgrading from Python 2.7 to 3.5 may encounter the error:

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

Possible Cause and Solution:

The error arises because the necessary C compiler is not installed. While Visual Studio 2015 may be present, it's crucial to verify that the C compiler is included.

Steps:

  1. Open the Visual Studio 2015 installation wizard (via Programs and Features).
  2. Navigate to Programming Languages -> VC .
  3. Ensure that the C compiler checkbox is ticked.
  4. Complete the installation process.

This should resolve the Microsoft Visual C 14.0 dependency issue, allowing you to successfully install lxml via pip.

The above is the detailed content of How Do I Fix the \'Microsoft Visual C 14.0 is Required\' Error During Pip Installation?. 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