Home >Backend Development >Python Tutorial >Why Does Installing Python Packages Fail with 'error: Microsoft Visual C 14.0 or greater is required'?
Troubleshooting: "error: Microsoft Visual C 14.0 or greater is required" During Python Package Installation
When attempting to install Python packages, you may encounter an error indicating that Microsoft Visual C 14.0 or higher is required. Despite updating to version 14.27, the error persists. Let's delve into the solution to resolve this issue.
Solution:
Ensure that the following are enabled:
vs_buildtools.exe --norestart --passive --downloadThenInstall --includeRecommended --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.MSBuildTools
Additional Note (December 28, 2020):
For an updated approach, consider the following steps:
Under "Individual Components," enable only:
Refer to https://www.scivision.dev/python-windows-visual-c-14-required for further details.
The above is the detailed content of Why Does Installing Python Packages Fail with 'error: Microsoft Visual C 14.0 or greater is required'?. For more information, please follow other related articles on the PHP Chinese website!