Troubleshooting "error: Microsoft Visual C 14.0 or greater is required" While Installing Python Packages
When attempting to install Python packages, you may encounter the error: "error: Microsoft Visual C 14.0 or greater is required." This error signifies that your system lacks the necessary C runtime dependencies required by the package installation.
Resolution:
To resolve this issue, follow these steps:
If updating through the installer doesn't resolve the issue, try the following:
Additional Tips:
UPDATE: December 28, 2020
Alternatively, you can use the following command to automate the installation of the necessary components:
vs_buildtools.exe --norestart --passive --downloadThenInstall --includeRecommended --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.MSBuildTools
For more information, refer to: https://www.scivision.dev/python-windows-visual-c-14-required
The above is the detailed content of How to Fix the 'error: Microsoft Visual C 14.0 or greater is required' Python Installation Error?. For more information, please follow other related articles on the PHP Chinese website!