Home > Backend Development > Python Tutorial > Why Am I Still Getting the 'Microsoft Visual C 14.0 or Greater is Required' Error After Updating?

Why Am I Still Getting the 'Microsoft Visual C 14.0 or Greater is Required' Error After Updating?

Patricia Arquette
Release: 2024-12-09 04:58:13
Original
582 people have browsed it

Why Am I Still Getting the

How to Resolve the Error: "Microsoft Visual C 14.0 or Greater is Required"

When attempting to install Python packages, you may encounter an error message indicating that Microsoft Visual C 14.0 or a higher version is necessary. Despite updating to the latest version (14.27), you may continue to experience this issue.

Solution:

To rectify this error, follow these steps:

  1. Download and Install Microsoft C Build Tools:

    • Navigate to https://visualstudio.microsoft.com/visual-cpp-build-tools/ and download the latest version.
    • Open the installer and follow the on-screen instructions.
  2. Check and Update Components:

    • Open the "Modify" option in the Microsoft C Build Tools installer.
    • Ensure that "Microsoft Visual C " and any other necessary components are up-to-date.
  3. Alternate Steps (Updated December 28, 2020):

    • In Visual Studio Installer, select "Workloads → Desktop development with C ."
    • Under "Individual Components," select only the following:

      • Windows 10 SDK
      • C x64/x86 build tools
    • To automate the process, execute the following command in Command Prompt:
    vs_buildtools.exe --norestart --passive --downloadThenInstall --includeRecommended --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.MSBuildTools
    Copy after login

After completing these steps, you should no longer encounter the "Microsoft Visual C 14.0 or greater is required" error when installing Python packages.

The above is the detailed content of Why Am I Still Getting the 'Microsoft Visual C 14.0 or Greater is Required' Error After Updating?. 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