close

[Solved] error: Microsoft Visual C++ 14.0 or greater is required

I am trying to install python packages with pip But I am facing the following error: 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/ in Python. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.

How error: Microsoft Visual C++ 14.0 or greater is required Occurs ?

I am trying to install python packages with pip But I am facing the following error.

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/

So here I am writing all possible solutions that I have tried to resolve this error.

How To Solve error: Microsoft Visual C++ 14.0 or greater is required?

  1. How To Solve error: Microsoft Visual C++ 14.0 or greater is required?

    To Solve error: Microsoft Visual C++ 14.0 or greater is required First Of all Just Upgrade your pip with this command line python -m pip install –upgrade pip
    Then, Upgrade your wheel with this Commandline pip install –upgrade wheel
    Now, Try to Upgrade your setuptools with this commandline pip install –upgrade setuptools. Now, Try to install the python package again with this pip command.
    Hope Now, Your error must be solved.

  2. error: Microsoft Visual C++ 14.0 or greater is required

    To Solve error: Microsoft Visual C++ 14.0 or greater is required Try To Download Microsoft c++ build tools. And then Install It in Your system. Now, Make Sure to Check the Desktop development with C++ and install it as given in the below screenshot. You can also achieve the same automatically using the following command: vs_buildtools.exe –norestart –passive –downloadThenInstall –includeRecommended –add Microsoft.VisualStudio.Workload.NativeDesktop –add Microsoft.VisualStudio.Workload.VCTools –add Microsoft.VisualStudio.Workload.MSBuildTools as the installation is complete you can install your python package again with pip.

Solution 1: Download Microsoft c++ build tools

Try To Download Microsoft c++ build tools. And then Install It in Your system. Now, Make Sure to Check the Desktop development with C++ and install it as given in the below screenshot.

You can also achieve the same automatically using the following command.

vs_buildtools.exe --norestart --passive --downloadThenInstall --includeRecommended --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.MSBuildTools

as the installation is complete you can install your python package again with pip.

Solution 2: Upgrade pip, wheel and setuptools

  1. First Of all Just Upgrade your pip with this command line python -m pip install –upgrade pip
  2. Then, Upgrade your wheel with this Commandline pip install –upgrade wheel
  3. Now, Try to Upgrade your setuptools with this commandline pip install –upgrade setuptools
  4. Now, Try to install python package again with this pip command.
  5. Hope Now, Your error must be solved.

Summary

It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment