Back to Home

How to Solve error: Microsoft Visual C++ 14.0 is required. while installing modules in python.

Jun 26, 2020 1 min read ... views
python
How to Solve error: Microsoft Visual C++ 14.0 is required. while installing modules in python.
Advertisement





The Link in the error seems to be outdated. Try with the below link:

https://visualstudio.microsoft.com/visual-cpp-build-tools/

Step 1: It will install file and Visual studio will run and install 70 MB approx.
Step 2: The visual studio build tools will appear. Click on resume/Install.



Step 3: It will download and install 1.16 GB approx data. Wait for it to install.


Step 4: It will ask you for a reboot. So, go ahead and do it.


Step 5: Run your command again by which you were getting error. It should work.
For me it was coming while installing pyaudio:
So, my command will be python -m pip install pyaudio 
while doing so I was getting one more error :
 src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
So, for this error I tried below commands: (Run as administrator if it didn't work.)
pip install pipwin
pipwin install pyaudio  
Hope we were able to resolve the issue 😉 . For donations, UPI id : spurujeet@oksbi

Advertisement
P

Written by Puru

I am a software builder, developer, and technical writer. I design web products like JSON2Apex and the Python Visualizer. I write these guides to share actual, real-world development solutions and lifestyle strategies. No corporate fluff, just practical code and direct insights.

Need help? Ask our AI guide! 👋