Home > Backend Development > Python Tutorial > Why Does My Python Installation Need Microsoft Visual C 14.0, and How Can I Fix It?

Why Does My Python Installation Need Microsoft Visual C 14.0, and How Can I Fix It?

Susan Sarandon
Release: 2024-12-18 13:06:28
Original
989 people have browsed it

Why Does My Python Installation Need Microsoft Visual C   14.0, and How Can I Fix It?

Install Python Packages Error Resolved: Microsoft Visual C 14.0 Requirement Fulfilled

When attempting to install a Python package, you may encounter an error message: "error: Microsoft Visual C 14.0 or greater is required. Get it with "Microsoft C Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/". Despite updating to the latest version (14.27), the error persists. This guide provides a solution to resolve the issue, enabling successful package installation.

Solution: Install Microsoft C Build Tools

Step 1: Navigate to https://visualstudio.microsoft.com/visual-cpp-build-tools/ and download the Microsoft C Build Tools.

Step 2: Launch the installer and follow the on-screen instructions.

Step 3: If the update does not resolve the issue, click "Modify" to make further changes.

Step 4: Ensure that all necessary C components are checked for download.

Step 5: Restart your system and retry the Python package installation.

Additional Options

If the above steps do not resolve the issue, consider the following alternatives:

  • Command Line Installation: Use the command "vs_buildtools.exe --norestart --passive --downloadThenInstall --includeRecommended --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.MSBuildTools" to automate the process.
  • Workload Selection: Install the necessary workloads through Visual Studio Installer by selecting "Workloads → Desktop development with C " and including only "Windows 10 SDK" and "C x64/x86 build tools" under Individual Components.

By implementing these measures, you should be able to resolve the "Microsoft Visual C 14.0 or greater is required" error and successfully install Python packages without any further issues.

The above is the detailed content of Why Does My Python Installation Need Microsoft Visual C 14.0, and How Can I Fix It?. 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