I’m trying to install a package on Python, but Python is throwing an error on installing packages. I’m getting an error every time I tried to install pip install google-search-api.
Here is the error how can I successfully install it?
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/
I already updated that and have the latest version of 14.27 but the problem is throwing the same error.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Go to this link and download Microsoft C++ Build Tools:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
Open the installer, then follow the steps.
You might have something like this, just download it or resume.
If updating above doesn’t work then you need to configure or make some updates here. You can make some updates here too by clicking “Modify“.
Check that and download what you need there or you might find that you just need to update Microsoft Visual C++ as stated on the error, but I also suggest updating everything there because you might still need it on your future programs. I think those with the C++ as I’ve done that before and had a similar problem just like that when installing a python package for creating WorldCloud visualization.
UPDATE: December 28, 2020
You can also follow these steps here:
- Select: Workloads → Desktop development with C++
- Then for Individual Components, select only:
- Windows 10 SDK
- C++ x64/x86 build tools
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
Reference:
https://www.scivision.dev/python-windows-visual-c-14-required
Method 2
- Upgrade your pip with: python -m pip install –upgrade pip
- Upgrade your wheel with: pip install –upgrade wheel
- Upgrade your setuptools with: pip install –upgrade setuptools
- close the terminal
- try installing the pacakage again.
Boom !!! it works.
Method 3
2020 – redist/build tools for Visual C++
silent installs can be done using the following two commands :
vs_buildtools__370953915.1537938681.exe --quiet --add Microsoft.VisualStudio.Workload.VCTools
and
VC_redist.x64.exe /q /norestart
Method 4
Tried Prason’s approach. Also tried the fix suggested here
- conda install -c conda-forge implicit
- pip install –upgrade gensim
Method 5
check if no older version of Microsoft Visual C++ are installed. If so uninstall them.
Method 6
- Download Microsoft C++ Build Tools:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
This solution works for me a lot after installing the MicrosoftVisual c++ build tools got greatly worked a lot to install word cloud and the stopwords process at Python prompt, Great.
after installing these errors got cleared along with legacy sys errors and build tool errors too.
Thank you.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0


